Page 1 of 1

Error sending Test Email

Posted: Sat 08 May 2021 4:29 pm
by philpugh
I have set up email to send via my SMTP (smtp.outlook365.com) and all fields are filled in correctly!

I get this message in the MXDiags file when sending a test email from Alarms section....

2021-05-08 17:12:27.680 Sending test email...
2021-05-08 17:12:29.279 SendEmail: Error - System.ArgumentNullException: Value cannot be null.
Parameter name: protocolLogger
at MailKit.MailService..ctor (MailKit.IProtocolLogger protocolLogger) [0x00009] in <3c7f101e718c4265a4f575cb521ca758>:0
at MailKit.MailTransport..ctor (MailKit.IProtocolLogger protocolLogger) [0x00000] in <3c7f101e718c4265a4f575cb521ca758>:0
at MailKit.Net.Smtp.SmtpClient..ctor (MailKit.IProtocolLogger protocolLogger) [0x00026] in <3c7f101e718c4265a4f575cb521ca758>:0
at CumulusMX.EmailSender.SendTestEmail (System.String[] to, System.String from, System.String subject, System.String message, System.Boolean isHTML) [0x0010e] in <9827d53884c546aa85bfc5f2c5251365>:0
2021-05-08 17:12:29.280 Test email sent without error


Email setting screen attached
mail.png
I understand the 'sent without error' isn't right!!

Re: Error sending Test Email

Posted: Sat 08 May 2021 4:42 pm
by jlmr731
I got the same errors, using my isp smtp, even tried localhost and saw no entries in the mail log files.

Re: Error sending Test Email

Posted: Sat 08 May 2021 11:09 pm
by mcrossley
It's a bug in the send mail function - if you switch on email logging - Program Settings > General Settings - the error will not occur.

I'll fix this in a future release.

Re: Error sending Test Email

Posted: Sun 09 May 2021 12:34 am
by jlmr731
That did the trick Mark.
I did enter logging=1 in ini file but I didn't restart MX as I thought with updating settings with the dashboard it would reload on its own. either way it now works :clap:

Re: Error sending Test Email

Posted: Sun 09 May 2021 8:36 am
by hvd51
after upgrade to build 3130 i still need to switch on email logging.

Harm

Re: Error sending Test Email

Posted: Sun 09 May 2021 8:51 am
by freddie
hvd51 wrote: Sun 09 May 2021 8:36 am after upgrade to build 3130 i still need to switch on email logging.
Correct. As Mark said, it will be fixed in a future release.

Re: Error sending Test Email

Posted: Sun 09 May 2021 9:39 am
by hvd51
ok thanks and no hurry Mark.

Harm

Re: Error sending Test Email

Posted: Sun 09 May 2021 9:49 am
by liddelljs
I have also noticed that, when I restart MX, the mail logging check box in the program general settings doesn't seem to hold. I have to check it again. Not sure if this is deliberate.

Cheers
Steve

Re: Error sending Test Email

Posted: Sun 09 May 2021 3:09 pm
by ConligWX
liddelljs wrote: Sun 09 May 2021 9:49 am I have also noticed that, when I restart MX, the mail logging check box in the program general settings doesn't seem to hold. I have to check it again. Not sure if this is deliberate.

Cheers
Steve
did you click the "save" button at the bottom of the screen when you select the option?

Re: Error sending Test Email

Posted: Mon 10 May 2021 9:05 am
by philpugh
In the 'small print' on the email logging page it says that this setting is only for this session. If you restart CumulusMX you need to reset the logging.

It does fix the temporary problem though!

Re: Error sending Test Email

Posted: Mon 10 May 2021 9:19 am
by liddelljs
Thanks for the feedback. I did hit the save button after checking the box but I think Phil might have it - the setting only holds for the current session. Is this to prevent large log files? otherwise might be good to have it hold the setting.

Cheers
Steve