Author |
|
pfrigge Newbie
Joined: 24 May 2019
Online Status: Offline Posts: 3
|
Posted: 01 March 2021 at 9:00am | IP Logged
|
|
|
I'm trying to send to an email address with non-ascii characters, like 'äöü@example.com'. As far as I understand, this should be possible if the smtp server supports the smtputf8 extension.
'smtp.office365.com' specifies that it supports smtputf8 (I'm checking with the smtp.GetExtensions() method). Nevertheless I'm getting the following error code: 501 5.1.8 UTF-8 addresses not supported.
On this page I found the info that I need to set RequestEncoding property of Smtp object to UTF8. But that seems to make no difference. (As far as I can tell from the logs when sending to smtp4dev setting the RequestEncoding makes no difference.)
Any advice what to try or what I'm doing wrong?
Thanks!
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 01 March 2021 at 11:48am | IP Logged
|
|
|
Hi,
To fix 'user@äöü.com' address, you can convert such address (more exactly, its domain part) into Punycode
https://afterlogic.com/mailbee-net/docs/#MailBee.Mime.EmailAddress.ToIdnAddress.html
However, in your case of you have international chars in account name part, not in domain name part. To use international characters in account name part, you indeed have to use UTF-8 (which, apparently, Office 365 does not support, despite advertising it in EHLO response).
Regards,
Alex
|
Back to Top |
|
|