Identifies the recipients of a message.
property Recipients: TIdEmailAddressList;
Recipients is a TIdEMailAddressList property used to store a collection of TIdEmailAddressItem values that identify the recipients of the message. Recipients contains email addresses receiving the message as indicated in the RFC 2822 message header "To:".
Use the EmailAddresses property in Recipients to get/set a delimited list of all email addresses in the collection. Use methods in Recipients like Add, Insert, or Delete to maintain individual email addresses in the collection.
Use CCList to indicate email addresses receiving a Carbon Copy of the message. Use BCCList to indicate email addresses receiving a Blind Carbon Copy of the message.
(Delphi) Updating a list of recipient email addresses
// method One AMessage.Recipients.EmailAddresses := '"John Doe" <firstname.lastname@example.org>, ' + '"Jane Doe" <email@example.com>'; // method Two with AMessage.Recipients.Add do begin Name := 'John Doe'; Address := 'firstname.lastname@example.org'; end; with AMessage.Recipients.Add do begin Name := 'Jane Doe'; Address := 'email@example.com'; end; // method Three with AMessage.Recipients.Add do Text := '"John Doe" '; with AMessage.Recipients.Add do Text := '"Jane Doe" ';
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.