TTMSFNCCloudSendGridMailTemplate.AddRecipient Method
Creates an empty recipient, adds it to the recipient list and returns it.
API unit family: TMSFNCCloudSendGrid
Declaring type: TTMSFNCCloudSendGridMailTemplate
Overloads
Overload 1
Creates an empty recipient, adds it to the recipient list and returns it.
function AddRecipient: TTMSFNCCloudSendGridRecipient; overload;
Returns
The newly added recipient.
Overload 2
Adds a recipient with the given address and optional display name.
function AddRecipient(AEmailAddress: string; AName: string = ''): TTMSFNCCloudSendGridRecipient; overload;
Parameters
| Name | Description |
|---|---|
AEmailAddress |
Email address of the recipient. |
AName |
Optional display name of the recipient. |
Returns
The newly added recipient.