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

error unencrypted connection #27

Open
rami-dabain opened this issue Jun 11, 2018 · 3 comments
Open

error unencrypted connection #27

rami-dabain opened this issue Jun 11, 2018 · 3 comments

Comments

@rami-dabain
Copy link

Is there any way to force unencrypted connections to work?
I have tried:

.SSL = false
.StartTLSPolicy = mail.NoStartTLS
.TLSConfig = &tls.Config{InsecureSkipVerify: true}// (which was working before last update)

but nothing working now

@cgyim
Copy link

cgyim commented Sep 19, 2018

@rami-dabain I have reimplemented the smtp.Auth interface, https://github.com/cgyim1992/gomail, which you can choose to bypass server tls check. I have tested the code, I can send an email to a server with plain transport(port=25). If you must force unencrypted connections, it's a hack but unsafe solution. You only need to set ssl=false.

@nifflin
Copy link

nifflin commented Jan 2, 2019

@cgyim1992 I tried your repo, but still told "unencrypted connection", like this:

d := gomail.NewDialer(sndAddr, sndPort, loginname, password, true)

d.SSL = false

...

@wickerplane
Copy link

@SMcDuck @rami-dabain See reply in go-gomail#113

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

4 participants