sendEmail

Request Method: POST

Description: Send an Email

URL: https://api.iovox.com:444/SMS?v=3&method=sendEmail

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES

Payload

The following XML payload must be sent with a sendEmail request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <link_id>email_link_tracking_id</link_id>
    <from>iovoxtestsender@iovox.com</from>
    <from_name>Iovox Limited</from_name>
    <to>iovoxtestreceiver@iovox.com</to>
    <subject>This is the subject</subject>
    <content><![CDATA[<!DOCTYPE html><html> this is an example content <p>new paragraph</p></html>]]></content>
</request>

Payload Description

The following parameters can be sent in the querystring

Node NameDescriptionDefault ValueData TypeMandatory
link_idLink id of the tracking element we want to be send from
STRINGYES
fromFrom address of the sender
STRINGYES
toThe address will receive the email
STRINGYES
subjectThe subject of the email
STRINGYES
contentThe content of the email
STRINGYES

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be POST. x attemptedSwitch request method x to POST
400XML EmptyAdd xml to the request body
400XML parse error. x at line y, column zCorrect XML at point x on line y, column z
400Request EmptyAdd at least one node to the request
400Link ID EmptyAdd a valid link_id
400Link ID does not existCorrect link_id
400From is not valid email addressCorrect from
400From Name EmptyAdd a from_name
400To is not valid email addressCorrect to
400Subject EmptyAdd a subject
400Content EmptyCorrect content
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 201 Created

<?xml version="1.0" encoding="UTF-8"?>
<response>
        <id>d454cfe0-a835-11e6-9852-d43d7ed6ce4c</id>
</response>