Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants