POST api/InstantEmail
Send an Email using a template on SENDService.
URL Request: login.sendservice.eu/multichannelAPI/api/InstantEmail
Request Parameters
Parameter | Description | Object / Right format | Required |
---|---|---|---|
user | It represents required object for the authorization | "User": { "username": "your username","password": "your password" } | Yes |
DateStartToSend | It represents date when you want to schedule your Email | aaaa-MM-ggThh:mm:ss.SSS+UTC | Yes |
Tags | It is an array with dynamic fields inserted in your email Template where Key is the name of the field and "Value" is the value of your field | It depends from the field you want tu valorize. | No |
EmailSubject | Subject of your Email | String | Yes |
EmailTo | The recipient of your email | String | Yes |
EmailSender | It represents the sender of your Email | String | yes |
EmailSenderName | It represents the Name of the Email Sender | String | no |
EmailTemplateID | Contact Lastname | String max 128 characters | no |
HTMLCode | It contains the HTML Code of your Email. HTMLCode has a major priority than Email Template ID | Html code | no |
Language | It is the language for Unsubscribe link and Web version link | it-IT en-US ro-RO | no (default value depends from the account language) |
CodeRequest | Unique Identification code for your request | better to send a GUID | no |
Emails | It can contain an array of Emails to send with all the parameters | "Emails": [ {...} ] |
Example Application/Json, Text/json - 1 Request, 1 Email
Example Application/json Text/json
{ "User": { "username": "your username", "password": "your password" }, "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00", "CodeRequest": "", "Tags": [ { "Key": "Name", "Value": "Robert" }, { "Key": "CustomField1", "Value": "Value1" } ], "EmailSubject": "Email SENDService API", "EmailTo": "recipient@recipient.com", "EmailSender": "info@sendservice.eu", "EmailSenderName": "SENDService", "HtmlCode": "SampleHTML", "EmailTemplateId": 8, "Language": "it-IT" }
Example Application/Json, Text/json - 1 Request, More Emails
Example Application/json Text/json
{ "User": { "username": "your username", "password": "your password" }, "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00", "CodeRequest": "", "Tags": [ { "Key": "Name", "Value": "Robert" }, { "Key": "CustomField1", "Value": "Value1" } ], "EmailSubject": "Email SENDService API", "EmailTo": "recipient@recipient.com", "EmailSender": "info@sendservice.eu", "EmailSenderName": "SENDService", "HtmlCode": "SampleHTML", "EmailTemplateId": 8, "Language": "it-IT" "Emails": [ { "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00", "DateCreated": "2018-06-11T11:01:45.5776864+02:00", "DateModify": "2018-06-11T11:01:45.5776864+02:00", "CodeRequest": "sample string 2", "Tags": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "EmailSubject": "sample string 3", "EmailTo": "sample string 4", "EmailSender": "sample string 5", "EmailSenderName": "sample string 6", "HtmlCode": "sample string 7", "EmailTemplateId": 8, "DateTimeRead": "2018-06-11T11:01:45.5776864+02:00", "TimesRead": 9, "Language": "sample string 10" }, { "DateStartToSend": "2018-06-11T11:01:45.5776864+02:00", "DateCreated": "2018-06-11T11:01:45.5776864+02:00", "DateModify": "2018-06-11T11:01:45.5776864+02:00", "CodeRequest": "sample string 2", "Tags": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "EmailSubject": "sample string 3", "EmailTo": "sample string 4", "EmailSender": "sample string 5", "EmailSenderName": "sample string 6", "HtmlCode": "sample string 7", "EmailTemplateId": 8, "DateTimeRead": "2018-06-11T11:01:45.5776864+02:00", "TimesRead": 9, "Language": "sample string 10" } ] }