-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Sending email leads to an os error (invalid token) #893
Comments
Could you try using an SMTP server from a different provider in order to figure out whether it's a Microsoft issue or something else? |
I've just tested it with Gmail, same outcome. |
Are you by any chance putting in the port number together with the hostname parameter of |
You mean like "smtp.office365.com:587"? No, it's just "smtp.office365.com" |
I am facing the same problem using AWS SES Reference snippet:
|
Solved (at least for my case): changed relay() to starttls_relay() |
Hi, I am trying to use lettre to send emails via the outlook smtp server smtp.office365.com:587. However, the send(...) function of AsyncSmtpTransport returns an error which I believe to be a bug.
The following code snippet shows the relevant part of my code:
The error (wrapped in an anyhow::Result with context "Failed to send mail"):
The German part means "The token given to the function is invalid." in English.
I am using Windows 11 and lettre v0.10.4.
The text was updated successfully, but these errors were encountered: