Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.11.4 (build 3133) - 25 May 2021 (please see announcement regarding releases since 3.5.0)
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

Mail error

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
semko
Posts: 4
Joined: Sun 17 Jun 2018 2:02 pm
Weather Station: pce-FWS 20
Operating System: Windows 10

Mail error

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

Defenderdogs
Posts: 7
Joined: Mon 19 Apr 2021 6:32 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: RPi3 Buster

Re: Mail error

Post by Defenderdogs »

I have the same error....tried all the authentication options.

semko
Posts: 4
Joined: Sun 17 Jun 2018 2:02 pm
Weather Station: pce-FWS 20
Operating System: Windows 10

Re: Mail error

Post 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

Defenderdogs
Posts: 7
Joined: Mon 19 Apr 2021 6:32 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: RPi3 Buster

Re: Mail error

Post 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

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

Re: Mail error

Post by freddie »

Are you using b3130?
Freddie
Image

semko
Posts: 4
Joined: Sun 17 Jun 2018 2:02 pm
Weather Station: pce-FWS 20
Operating System: Windows 10

Re: Mail error

Post by semko »

Yes, I'm on b3130

Mrc
Posts: 34
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

Re: Mail error

Post by Mrc »

I also have same error.. don't know what to do..

water01
Posts: 2161
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Mail error

Post 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!!
David
Image

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

Re: Mail error

Post 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
Freddie
Image

Post Reply