POST api/Helper/SendEmailWithTemplate
Request Information
URI Parameters
None.
Body Parameters
EmailWithTemplateModelName | Description | Type | Additional information |
---|---|---|---|
tos | Collection of string |
None. |
|
subject | string |
None. |
|
body | string |
None. |
|
templateId | string |
None. |
|
substitutions | Collection of KeyPair |
None. |
Request Formats
application/json, text/json
Sample:
{ "tos": [ "sample string 1", "sample string 2" ], "subject": "sample string 1", "body": "sample string 2", "templateId": "sample string 3", "substitutions": [ { "key": "sample string 1", "value": "sample string 2" }, { "key": "sample string 1", "value": "sample string 2" } ] }
text/html
Sample:
{"tos":["sample string 1","sample string 2"],"subject":"sample string 1","body":"sample string 2","templateId":"sample string 3","substitutions":[{"key":"sample string 1","value":"sample string 2"},{"key":"sample string 1","value":"sample string 2"}]}
application/xml, text/xml
Sample:
<HelperController.EmailWithTemplateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers"> <body>sample string 2</body> <subject>sample string 1</subject> <substitutions xmlns:d2p1="http://schemas.datacontract.org/2004/07/EB.Api.Models"> <d2p1:CommonModels.KeyPair> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:CommonModels.KeyPair> <d2p1:CommonModels.KeyPair> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:CommonModels.KeyPair> </substitutions> <templateId>sample string 3</templateId> <tos xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </tos> </HelperController.EmailWithTemplateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.