Indy 9 | Content | Index | Reference

EncodeAddress
See Also, Unit: IdCoderHeader
Encodes RFC 822 EMail Addresses that contains special characters.

    function EncodeAddress(EmailAddr: TIdEMailAddressList; const HeaderEncoding: Char; TransferHeader: TTransfer; MimeCharSet: string): string;

Unit
IdCoderHeader
Parameters
EmailAddr: TIdEMailAddressList
List containingt Email addresses to be encoded.
const HeaderEncoding: Char
Encoding to use for the EMail addresses.
TransferHeader: TTransfer
Transfer encoding to use for the EMail addresses.
MimeCharSet: string
MIME character set to use for the EMail addresses.
Return Value
String - comma-delimited representation of the encoded Email addresses.
Description
EncodeAddress is a String function that encodes RFC 822-compliant EMail Addresses that contains special characters. EncodeAddress calls EncodeAddressItem for each EMail address in the list EMailAddr.

The return value for EncodeAddress is a String containing the comma-delimited representation of the encoded Email addresses.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.