4 ms·
Using plain text Gmail password looks like a red flag. e.Send("smtp.gmail.com:587", smtp.PlainAuth("", "test@gmail.com",
by zavi 13y ago
Using plain text Gmail password looks like a red flag.
e.Send("smtp.gmail.com:587",
smtp.PlainAuth("",
"test@gmail.com",
"password123",
"smtp.gmail.com"))
- jwcrux 13y agoI am wrapping SendMail.. "SendMail connects to the server at addr, switches to TLS if possible, authenticates with the optional mechanism a if possible, and then sends an email from address from, to addresses to, with message msg"[1] [1]http://golang.org/pkg/net/smtp/#SendMail http://golang.org/pkg/net/smtp/#SendMail