-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
504 5.7.4 Unrecognized authentication type #113
Comments
I have a very similar setting to yours, except for the smtp port I'm using 25 and point it to an Exchange server. The server I'm using supports only AUTH LOGIN extension (you can check
|
Just realized that this package doesn't support AUTH LOGIN just yet. It's not hard to implement and there's an open PR for it here but it's not merged yet: #104 I'd like to get @jordan-wright to have a look. Whoever uses Outlook / Exchange Server will have this issue |
it's working for me. e := email.NewEmail()
addr := "smtp.office365.com:587"
auth := LoginAuth(username, password)
tlsConfig := &tls.Config{
ServerName: "smtp.office365.com",
}
e.SendWithStartTLS(addr, auth, tlsConfig) |
I've tried to run the example in the README using the outlook smtp servers:
However the package doesn't send the email and throws the error:
Snippet of MWE:
Upon further research go-gomail/gomail#16 might be related but I'm still digging.
The text was updated successfully, but these errors were encountered: