Internet Direct (Indy) Version 9.0.2 Beta
|
function EncodeAddressItem(EmailAddr: TIdEmailAddressItem; const HeaderEncoding: Char; TransferHeader: TTransfer; MimeCharSet: string): string;
The return value for EncodeAddressItem is a string that represents the EMail address and optional name from EMailAddr. When EmailAddr contains the optional name, the return string contains data in the following format:
John Doe
The special characters '' and '"' in the email address will be quoted using the '' character.