-
Notifications
You must be signed in to change notification settings - Fork 49
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
Unicode sender #94
Comments
Ok, I've added some bugfixes around this to master. You should now be able to use UTF8 chars in the sender or recipient's display name. To have them work in the actual email address, the server needs SMTPUTF8 support. Note, here you're using
If you want to use the legacy compat32 API for some reason, it's
|
I've changed nothing in my example code but It gives me the following error:
I guess it is because recipient is of string type, not |
OK, I've added handling for that case as well to master, I was just looking at the encoding thing before. That error is happening because you're using a tuple of strings to assign multiple addresses. That assigns a string where an I would still say it's probably not great practice. There are many ways to generate normal |
Thanks! I think the issue can be closed now. |
I'm specifying "From" header at
Message
object but it's not enough, -aiosmtplib.errors.SMTPNotSupported: An address containing non-ASCII characters was provided, but SMTPUTF8 is not supported by this server
is raised.The code is as follows:
The text was updated successfully, but these errors were encountered: