Hello,
In my Python application, I would like to be able to send mail to addresses like っていった@example.jp
, dé[email protected]
, or even عرض@وزارة-الأتصالات.مصر
, which are perfectly valid.
When passing the address as UTF-8, I get an UnicodeDecodeException. If I encode the address with address.encode('utf-8')
, no Python error but I get bounce mail explaining Diagnostic-Code: smtp; 501 Malformed RCPT TO: - psmtp
.
What's the way to make everything work ?
Thanks.