Closed aldayneko closed 2 months ago
MailKit will use the UTF-8 version of the mailbox address when the SMTP server supports the SMTPUTF8 extension.
When it doesn't, it will use the IDN-encoded version of the mailbox address.
You can disable SMTP extensions by doing this:
client.Capabilities &= ~SmtpCapabilities.UTF8;
Thanks but I got it to work just creating custom IPunycode implementation which simply doesn't do any conversion and it solved my problem
Hello, I have an issue when my smtp server rejects sending emails when from field contains idn address, but works fine in case of punycode value But I can't create MimeMessage where MailboxAddress contains punycode, because it always converts punycode into idn I probably might implement my custom IPunycode which doesn't do any conversion and assign IdnMapping with it, but it can be bad idea since it's static and will be applied everywhere Is there any workaround here ?