Atozed Forums
SMTP, Sender header, and non-ASCII characters - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Indy (https://www.atozed.com/forums/forum-8.html)
+--- Forum: Indy General Discussion (https://www.atozed.com/forums/forum-9.html)
+--- Thread: SMTP, Sender header, and non-ASCII characters (/thread-1396.html)



SMTP, Sender header, and non-ASCII characters - Midiar - 11-22-2019

In TIdMessage.GenerateHeader, the From header is set using EncodeAddress, so non-ASCII characters are displayed correctly. 
The Sender header, however, is set directly, so that non-ASCII characters in TIdMessage.Sender.Name are substituted by "?".

Is that by design? Because of a standard, or because of actual behaviour by servers?

::tor


RE: SMTP, Sender header, and non-ASCII characters - rlebeau - 11-22-2019

(11-22-2019, 12:55 PM)Midiar Wrote: Is that by design? Because of a standard, or because of actual behaviour by servers?

I don't know of any reason why encoding should be skipped on the Sender, it is probably just an oversight.