Page 1 of 1

Mail error

Posted: Fri 14 May 2021 8:45 am
by semko
I find this error in the log when MX tries to send an email when the sensor contact gets lost:

Code: Select all

2021-05-13 15:39:12.951 Sensor contact lost; ignoring outdoor data
2021-05-13 15:39:14.408 SendEmail: Error - System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: protocolLogger
   bei MailKit.MailService..ctor(IProtocolLogger protocolLogger)
   bei MailKit.MailTransport..ctor(IProtocolLogger protocolLogger)
   bei MailKit.Net.Smtp.SmtpClient..ctor(IProtocolLogger protocolLogger)
   bei CumulusMX.EmailSender.<SendEmail>d__4.MoveNext()
What am I doing wrong?

Re: Mail error

Posted: Fri 14 May 2021 9:26 am
by Defenderdogs
I have the same error....tried all the authentication options.

Re: Mail error

Posted: Fri 14 May 2021 10:16 am
by semko
@defenderdogs
Did you try to send a TestMail and is there an smtp.log in the MXdiags folder?
After setting up the mail params I managed to send a test email successfully and found the smt.log. Now I get a "test mail sent" message when I click TestMail but I get the error in the daily log, no mail is sent out and there is no entry in the smtp.log

Re: Mail error

Posted: Fri 14 May 2021 10:31 am
by Defenderdogs
Yes to all. I don't recall ever having sent a successful message even though the smtp.log would indicate that not to be the case as it has the OK part towards the end. Like you I get "Test Mail Sent" and the same error ("Value cannot be null") in the current log file.

Marc

Re: Mail error

Posted: Fri 14 May 2021 10:38 am
by freddie
Are you using b3130?

Re: Mail error

Posted: Fri 14 May 2021 4:15 pm
by semko
Yes, I'm on b3130

Re: Mail error

Posted: Sat 15 May 2021 5:27 am
by Mrc
I also have same error.. don't know what to do..

Re: Mail error

Posted: Sat 15 May 2021 8:28 am
by water01
I found I had a problem in 3130 with email again, so I set email logging on and hey presto the email was sent (and received). Logging must do something slightly different that causes the email to send.

So I just left email logging on especially as it is a small log!!

Re: Mail error

Posted: Sat 15 May 2021 9:11 am
by freddie
The requirement to keep email logging on for email to work correctly is a known issue which will be fixed in a later release. See viewtopic.php?f=40&t=19335&p=153989&hil ... ng#p153989