Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Sending to non-ascii e-mail addresses Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
pfrigge
Newbie
Newbie


Joined: 24 May 2019
Online Status: Offline
Posts: 3
Posted: 01 March 2021 at 9:00am | IP Logged Quote pfrigge

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 View pfrigge's Profile Search for other posts by pfrigge
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 01 March 2021 at 11:48am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide