Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

unencrypted connection #52

Open
widon1104 opened this issue Mar 5, 2019 · 2 comments
Open

unencrypted connection #52

widon1104 opened this issue Mar 5, 2019 · 2 comments

Comments

@widon1104
Copy link

widon1104 commented Mar 5, 2019

I use tom mail, go 1.10.2
host: smtp.tom.com
port: 25
d := mail.NewDialer(host, port, from, password)
d.SSL = false

I get "unencrypted connection", I can not send email use this library when use tom mail.

@davleb
Copy link

davleb commented Apr 3, 2019

Well, I had exactly this problem a few days ago. "unecrypted connection". This error is linked with the smtp server itself. Smtp server is telling you : "i want you to authentify on a secured port".
It appears that the sysadmin changed the smtp configuration and the port i used ceased to be a valid one.

remove the "d.SSL = false"
Change port from 25 to 465. (port 25 usually is usually for free, non secured, non authenticated smtp).
if not working try port 587.
if not working, your smtp port is non standard, ask the tom.com sysadmin for it.

@deagon
Copy link

deagon commented Jul 16, 2021

Change port from 25 to 465. (port 25 usually is usually for free, non secured, non authenticated smtp).

It works in my case.

Thanks a lot. @davleb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants