The Microsoft Exchange SMTP server I connect to at work supports AUTH LOGIN. It would be nice to have support for this in net/smtp.
After hunting around I found and adapted some MIT licensed code which implements this. This works for me and I have checked it against Python's smtplib implementation. It may, however, benefit from the same TLS checks that are in place in PlainAuth.Start as the credentials are similarly sent over the wire in plain text.
I am using go version go1.4.1 linux/amd64.
The Microsoft Exchange SMTP server I connect to at work supports
AUTH LOGIN. It would be nice to have support for this innet/smtp.After hunting around I found and adapted some MIT licensed code which implements this. This works for me and I have checked it against Python's
smtplibimplementation. It may, however, benefit from the same TLS checks that are in place inPlainAuth.Startas the credentials are similarly sent over the wire in plain text.I am using go version go1.4.1 linux/amd64.