Internet Direct (Indy) Version 9.0.2 Beta
TIdSMTP.Expand
Determines group membership for a mailing list or mailbox alias.

procedure Expand(AUserName: String; AResults: TStrings); virtual;
Parameters
AUserName: String
Mail list or alias to be expanded.

AResults: TStrings
Membership in the list or alias.

Description
Expand is a procedure used to determine if the argument in Username is a valid mailing list or mailbox alias on the server, and retrieve the email addresses for the membership of that list in AResults. Expand uses the SMTP EXPN command to retrieve the results, with one name and email address per line.

The following is an example of successful result values that might be returned in AResults when using Expand with the Username 'Example-People':

    Jon Postel 
    Fred Fonebone 
    Sam Q. Smith 
    Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>
    
    
    

Use Verify to validate an indivual name or address on the SMTP server.