POST api/Email/Template/AddToQueue
Adds an email to the sending queue.
Request Information
URI Parameters
None.
Body Parameters
AddToQueueEmailRequestName | Description | Type | Additional information |
---|---|---|---|
EmailTemplateId |
The email template ID on behalf this email is being sent. |
globally unique identifier |
Required |
ToAddresses |
The To addresses. Comma-delimited. Optional. If not provided, the default for the email sender profile is used. |
string |
None. |
CcAddresses |
CC addresses. Comma-delimited. Optional. |
string |
None. |
BccAddresses |
BCC addresses. Comma-delimited. Optional. |
string |
None. |
ReplyToAddresses |
Reply-To addresses. Comma-delimited. Optional. |
string |
None. |
MergeFieldsToValues |
MergeField => Value |
Dictionary of string [key] and string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{ "EmailTemplateId": "ae043610-0f24-4d47-b7d9-5dfe0458f75e", "ToAddresses": "sample string 2", "CcAddresses": "sample string 3", "BccAddresses": "sample string 4", "ReplyToAddresses": "sample string 5", "MergeFieldsToValues": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }
text/xml
Sample:
<AddToQueueEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Privacy.Proc.API.Models.EmailTemplate"> <BccAddresses>sample string 4</BccAddresses> <CcAddresses>sample string 3</CcAddresses> <MergeFieldsToValues xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </MergeFieldsToValues> <ReplyToAddresses>sample string 5</ReplyToAddresses> <ToAddresses>sample string 2</ToAddresses> <EmailTemplateId>ae043610-0f24-4d47-b7d9-5dfe0458f75e</EmailTemplateId> </AddToQueueEmailRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>