Topic Path: Symbol Reference > Functions > EncodeAddress Function
ContentsIndexHome
PreviousUpNext
EncodeAddress Function

Encodes RFC 2822 EMail Addresses that contains special characters.

File
function EncodeAddress(
    EmailAddr: TIdEMailAddressList; 
    const HeaderEncoding: Char; 
    TransferHeader: TTransfer; 
    MimeCharSet: string; 
    AUseAddressForNameIfNameMissing: Boolean = False
): string;
Parameters 
Description 
EmailAddr 
List containingt Email addresses to be encoded.
 
HeaderEncoding 
Encoding to use for the EMail addresses.
 
TransferHeader 
Transfer encoding to use for the EMail addresses.
 
MimeCharSet 
MIME character set to use for the EMail addresses.
 
AUseAddressForNameIfNameMissing 
 

string - Comma-delimited representation of the encoded Email addresses.

EncodeAddress is a String function that encodes RFC 2822-compliant EMail Addresses that contains special characters. EncodeAddress calls EncodeAddressItem for each EMail address in the list EMailAddr using the indicated encodings (header and content transfer) and the MIME character set indicated in the parameter list. 

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

Update parameter description for AUseAddressForNameIfNameMissing.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.