(by @MimePost)
curl -XPOST \
-H 'X-Auth-Token: api_token' \
-H "Content-type: application/json" \
-d '{
"html":"<p>This is an example html content</p>",
"subject":"This is an example subject",
"from_email":"from@example.com",
"from_name":"Sender Name",
"to":[
{
"email":"to@example.com"
}
],
"cc":[
"cc@example.com"
],
"bcc":[
"bcc@example.com"
]
}' 'http://api.mimepost.com/v1/emails/'
sudo apt-get install swaks
sudo yum install swaks
brew install swaks
swaks --server smtp.mimepost.com:2525 \
--auth-user smtpuser \
--auth-password smtppass \
--to to@example.com \
--from from@exmple.com
- PHP : PHPMailer
- NODE: Nodemailer
- GOLANG : Go SMTP package
- PYTHON : smtplib
- JAVA : JavaMail
These are few library for respective language. Every language has their SMTP library.