Send Mass EmailThe send command is used to send an email to a single recipient or multiple recipients. To use the send command POST to https://api.elasticemail.com/mailer/send with the following form values:
Optional Templates and contact lists:
Optional sender header. If you are sending on behalf of many clients with different from addresses use:
Optional scheduling. If you would like to schedule your email to be delivered in the future (drip campaigns etc):
Note: When you have more than one recipient in the "to" field each recipient will receive their own individually delivered copy of the email. Recipients will not see each other's email addresses.
Response:If sent correctly you will receive a response like: f74b9f96-f89a-4cfe-813f-5f86df1cb37f This is the transaction ID of your send job. You can use this transaction ID to check on the status of the given job using the Get Status api. Code SamplesPHPThere is also a Zend Framework class for delivering mail via Elastic Email. Special thanks to Marco Pracucci of Spreaker (http://spreaker.com) who provided this: Zend_Mail_Transport
PHP Using CURLC#JavaPythonPerlASP.NETForce.comRubyObjective C (iPhone)Node.js Application If you've written this (or any of our other API calls) in a language we don't have in our samples send us your working code and we'll put a bonus $50 of Elastic Email credit in your account as a big thank you!
|