Posts Mime Message
POST {{baseUrl}}/messages.mime?h:X-My-Header=<>&message=<>&o:campaign=<>&o:deliverytime=<>&o:dkim=<>&o:tag=<>&o:testmode=<>&o:tracking=<>&o:tracking-clicks=<>&o:tracking-opens=<>&to=<>&v:my-var=<>
Posts a message in MIME format. Note: you will need to build a MIME string yourself. Use a MIME library for your programming language to do this. Pass the resulting MIME string as message parameter.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
h:X-My-Header | string | h: prefix followed by an arbitrary value allows to appendna custom MIME header to the message (X-My-Headernin this case). For example, h:Reply-To to specify Reply-Tonaddress. | |
message | string | MIME string of the message. Make sure to usenmultipart/form-data to send this as a file upload. | |
o:campaign | string | Id of the campaign the message belongs to. SeenCampaign Analytics for details. | |
o:deliverytime | string | Desired time of delivery. See Date Format. Note:nMessages can be scheduled for a maximum of 3 days in thenfuture. | |
o:dkim | string | Enables/disabled DKIM signatures on per-message basis.nPass yes or no | |
o:tag | string | Tag string. See Tagging for more information. | |
o:testmode | string | Enables sending in test mode. Pass yes if needed.nSee Sending in Test Mode | |
o:tracking | string | Toggles tracking on a per-message basis, seenTracking Messages for details. Pass yes or no. | |
o:tracking-clicks | string | Toggles clicks tracking on a per-message basis. Has highernpriority than domain-level setting. Pass yes, nonor htmlonly. | |
o:tracking-opens | string | Toggles opens tracking on a per-message basis. Has highernpriority than domain-level setting. Pass yes or no. | |
to | string | Email address of the recipient(s).nExample: "Bob <bob@host.com>". You can use commas tonseparate multiple recipients.nMake sure to include all To, Cc and Bccnrecipients of the message. | |
v:my-var | string | v: prefix followed by an arbitrary name allows tonattach a custom JSON data to the message.nSee Attaching Data to Messages for more information. |