Make a request »

TransactionalService.SendTransactionalEmail

Sends a Transactional e-mail to one e-mail address. Allows for use of ExternalID as an input since Transactional results methods also returns this ID in addition to information about opens, clicks etc. Total max size of included attachment 1 MB. All attachments size could not be more than 2 MB. Supported attachment format is PDF. See code examples


URL Parameters

Http verb: POST
URI: Full url: http://se.api.anpasia.com/v1/transactional/projects/{projectId}/sendEmail?sendDate={sendDate}&allowInactiveProjects={allowInactiveProjects}
URL parameters:
projectIdStringId of the project
sendDateStringSend date (optional)
allowInactiveProjectsStringTrue(default)/False value indicating if sending should be allowed when project is inactive (optional)

Body parameters

Body parameters
emailSending
Holds all the information needed to do the sending

Email String The subscriber's email address (required)
Name String The name of the subscriber (optional)
Format String The subscriber's desired format (optional)
ExternalId String The subscriber's external id (optional)
CountryCode String The subscriber's country code (optional)
PhoneNumber String The subscriber's phone number (optional)
DemDataFields List
<DemDataField>
The subscriber's list of (optional) demographic data fields
DDHtml String Demographic data field for html (optional)
SendingType String Sending type (optional): m - marketing or t - transactional (default)
Attachments List
<TransactionalAttachment>
The list of (optional) attachments
Body Example

Response

Body parameters
returns
A response object which includes transaction id as result, status code and a message.

Code Int32 The response Code.
Message String The response Message.
Result
The response Result.

TransactionId Int64 The TransactionId
Body Example


Help

Code examples