Open BJBigler opened 6 years ago
I got the same problem. I use python to test the smtp server, it's works. But with golang, it's not working. BTW, I don't have authentication for smtp server.
In my case, it wasn't the gomail package, but rather a server configuration issue as described here:
see #104 and #108
it will only send the credentials if the connection is using TLS or is connected to localhost. Otherwise authentication will fail with an error, without sending the credentials.
Not sure what I'm doing wrong here. The emails send fine from localhost, but when I move the code to production, I get the error, "x509: certificate is valid for mywebhost.com, not smtp.smtphost.com". I'd sure appreciate any advice or direction.