JVCL Help:TJvMailRecipients.AddRecipient

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Creates a new TJvMailRecipient object and adds it to the end of the Items property array.


Pascal

 functionAddRecipient(constAddress: string; constName: string = ): Integer;


Parameters

Parameters Description
const Address: string Specifies the recipient address.
const Name: string = Specifies the display name of the message recipient.


Description

Call AddRecipient to creates a new recipient and assigns the values passed in the Address and Name parameters to the TJvMailRecipient properties of the same names.
Note that you may specify for the new recipient either the recipient's name, an address, or a name and address pair. The following table shows how SendMail handles the variety of information that can be specified:

Information Action
name Name resolved using the Simple MAPI resolution rules.
address No name resolution: address is used for both message delivery and for displaying the recipient name.
name and address No name resolution: name used only for displaying the recipient name.


The following code adds a recipient to the Recipient list:
JvMail1.Recipient.AddRecipient('SMTP:someone@somedomain.com', 'Some one');


See Also

TJvMailRecipients.Add, TJvMailRecipients.Items


About

Notes

The format of an address specified by parameter Address is [address type][e-mail address]. Examples of valid addresses are FAX:206-555-1212 and SMTP:M@X.COM.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page