This can also be passed in as an array, to send to multiple
locations. Note that recipients passed in this parameter will
be visible as part of the message. If you wish to hide the
recipients, use the TO parameter in the x-smtpapi header.
toname
No
Must be a string. If to parameter is an array, toname must
be an array with the exact number of array elements as the to field
Give a name to the recipient
x-smtpapi
No
Must be in valid JSON format
Please review the SMTP API to view
documentation on what you can do with the JSON headers
subject
Yes
Must be a valid string
The subject of your email
text and/or html
Yes
Must include one or both parameters
The actual content of your email message. It can be sent as either plain text
or HTML for the user to display
from
Yes
Must be a valid email address from your domain
This is where the email will appear to originate from for your recipient
bcc
No
Must be a valid email address
This can also be passed in as an array of email addresses for multiple
recipients
fromname
No
Must a valid string
This is name appended to the from email field. IE - Your name or company
name
Specify the date header of your email. One example: “Thu, 21 Dec 2000
16:01:07 +0200”. PHP developers can use: date(‘r’);
files
No
Must be less than 7MB
Files to be attached. The file contents must be part of the multipart HTTP
POST. Ex: files[file1.jpg]=&files[file2.pdf]= Example Code (PHP)
content
No
Required for sending inline images
Content IDs of the files to be used as inline images. Content IDs should match the cid’s used in the HTML markup. Ex: content[file1.jpg]=ii_139db99fdb5c3704 would correspond with the HTML <img src="cid:ii_139db99fdb5c3704">
headers
No
Must be in valid JSON format without integers
A collection of key/value pairs in JSON format. Each key represents a header
name and the value the header value. Ex: {“X-Accept-Language”: “en”, “X-Mailer”:
“MyApp”}