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": "4fec414b-bad3-42c2-8acc-66ec33f5b7b1", "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>4fec414b-bad3-42c2-8acc-66ec33f5b7b1</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>