email - Error connecting... - Please help

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

email - Error connecting... - Please help

#1 Post by Zodiac69 » 13 Jun 2021, 18:09

Hi All

I have been trying to use the smtp notification with out any success.
I created an smtp2go account, setup a user and have a password from smtp2go.

Domain: smtp2go.com
Server: mail.smtp2go.com
Port: 2525
Sender: xyz@gmail.com
Receiver: zyx@yahoo.com
Subject: Test Unit 1
User: smtp2go user name
Pass: smtp2go password

I have also encoded the username and password with Base64 as indicated by other forums, no luck.

Please point me in the right direction

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: email - Error connecting... - Please help

#2 Post by Ath » 13 Jun 2021, 18:37

Do you get anything relevant in the log? Both positive or negative will be helpful.
/Ton (PayPal.me)

Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

Re: email - Error connecting... - Please help

#3 Post by Zodiac69 » 13 Jun 2021, 21:18

Just a generic error message, irrespective of the debug level:

76954279: EMAIL: Connecting to mail.smtp2go.com2525
76954492: EMAIL: Error connecting to mail.smtp2go.com2525

I have tested the settings here - https://www.gmass.co/smtp-test and they work

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: email - Error connecting... - Please help

#4 Post by ThomasB » 14 Jun 2021, 03:57

I have been trying to use the smtp notification with out any success.
I created an smtp2go account, setup a user and have a password from smtp2go.
smtp2go has caused issues for other ESPEasy users in the last few months. For example:
viewtopic.php?t=8081

Port: 2525
Also try 80, 25, 8025 and 587
I have tested the settings here - https://www.gmass.co/smtp-test and they work
That testing app offers five different security setting choices. Please test all five security settings and report which work and which don't work. That info will probably be important to a dev.

One more thing ...
Could be a DNS problem. Try using the IP address in the SMTP notification settings instead of the URL.
See these posts from Duelago and Shardan for details:
viewtopic.php?p=43292#p43292
Also:
https://support.smtp2go.com/hc/en-gb/ar ... IP-Address

- Thomas

Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

Re: email - Error connecting... - Please help

#5 Post by Zodiac69 » 14 Jun 2021, 17:51

Hi ThomasB

The "Security options that worked is:
Port 25 and 2525 work on - Auto, Tls and Tls when available - None and SSL fail.
Port 465 Work on Auto, SSL, the rest fail
Port 587 Work on Auto, None,Tls and Tls when available, the rest fail

I tried the smtp2go.com IP: 66.228.43.14 - and i get he same generic error - EMAIL: Error connecting to 66.228.43.14225, i presume that the error handler has an issue with separating the IP and the port...

I just installed RPI Easy on RPI Zero, and the settings worked on "Protocol: Plain".
I know it is not the same, but it might just help the dev. guys

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: email - Error connecting... - Please help

#6 Post by ThomasB » 14 Jun 2021, 19:08

The "Security options that worked is:
Port 25 and 2525 work on - Auto, Tls and Tls when available - None and SSL fail.
Port 465 Work on Auto, SSL, the rest fail
Your testing revealed that your provider supports SSL/TLS on the noted ports. Unfortunately I don't believe those encryption protocols are currently supported by ESPeasy.
Port 587 Work on Auto, None,Tls and Tls when available, the rest fail
OK, your results also show that port 587 is working with "none" security (no encryption). So smtp2go's port 587 looks promising for use with ESPEasy's notification function.
... i get he same generic error - EMAIL: Error connecting to 66.228.43.14225, i presume that he error handler has an issue with separating the IP and the port
That's correct. It's an old bug. The notification's error log message code needs minor string concatenation improvements to tidy up the text output. It would be nice if there was a colon between the IP and port on the error message output.

I'm not using smtp2go.com so I can't test anything. But I recall @TD-er uses this service, so maybe he will jump in and share his setup?

Lastly, you didn't mention which ESPEasy version you are using. Be sure to try the latest Mega and perhaps something from late 2020. And report the versions you have tried.

- Thomas

Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

Re: email - Error connecting... - Please help

#7 Post by Zodiac69 » 14 Jun 2021, 20:14

Hi ThomasB

The version i am trying is: ESP_Easy_mega_20210223_normal_ESP8266_4M1M

I loaded the latest version - ESP_Easy_mega_20210503_normal_ESP8266_4M1M as well, changed the port to 587 and still the same error

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: email - Error connecting... - Please help

#8 Post by ThomasB » 14 Jun 2021, 20:25

Try one of your non-gmail account addresses in Notification's Sender field.

Beyond that I'm out of suggestions. So hopefully another user or a dev stops by to lend a hand.

I don't use smtp2go. I have reliable ESPEasy notifications using a paid ISP mail server. Nothing special in the setup other than it requires port 587.
Using these versions:
ESP_Easy_mega_20201022_test_ESP8266_4M1M
ESP_Easy_mega_20201102_test_ESP8266_4M1M
ESP_Easy_mega-20200222_normal

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests