Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Error sending Test Email

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Error sending Test Email

Post 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!!
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Error sending Test Email

Post by jlmr731 »

I got the same errors, using my isp smtp, even tried localhost and saw no entries in the mail log files.
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error sending Test Email

Post 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.
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Error sending Test Email

Post 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:
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: Error sending Test Email

Post by hvd51 »

after upgrade to build 3130 i still need to switch on email logging.

Harm
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Error sending Test Email

Post 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.
Freddie
Image
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: Error sending Test Email

Post by hvd51 »

ok thanks and no hurry Mark.

Harm
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Error sending Test Email

Post 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
User avatar
ConligWX
Posts: 1571
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error sending Test Email

Post 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?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Error sending Test Email

Post 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!
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Error sending Test Email

Post 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
Post Reply