gomail: 504 5.7.4 Unrecognized authentication type
From golang-nuts: https://groups.google.com/d/msg/golang-nuts/ywPpNlmSt6U/0Mxttkx9kgQJ
mailer := gomail.NewMailer("smtp.office365.com", "f...@bar.com", "password", 587)
Returns error 504 5.7.4 Unrecognized authentication type
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (5 by maintainers)
Commits related to this issue
- Added the LOGIN authentication mechanism support Closes #16. — committed to go-gomail/gomail by alexcesaro 9 years ago
Here’s the code of LoginAuth:
Then call:
mailer := gomail.NewCustomMailer("smtp.office365.com:587", LoginAuth("login@email.com", "password")).Not sure why I don’t need to use base64 to decode server commands and encode user and password 😕