error unencrypted connection
Opened this issue · 3 comments
rami-dabain commented
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 commented
@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 commented
@cgyim1992 I tried your repo, but still told "unencrypted connection", like this:
d := gomail.NewDialer(sndAddr, sndPort, loginname, password, true)
d.SSL = false
...
wickerplane commented
@SMcDuck @rami-dabain See reply in go-gomail#113