How to use Mandrill to Send Emails From Your Own Email Address
1) First we suppose to sign up with Mandril, to get started kindly register account here:
See Following Screenshot
2) Hit the “Get SMTP Credentials” page :
This option will help you to get the smtp details which will be associated with the email id which you have used for the sign up like “mandrill@365hostingsupport.com”
See Following Screenshot
3) Copy your SMTP credentials and create a new API Key by clicking on Add API key.
See Following Screenshot
4) Copy your API Key as well.
See Following Screenshot
5) Sending Domain verification :One more important thing here that we suppose to perform the domain verification.
You can verify a domain from the Sending Domains page in your Mandrill account or via the Mandrill API and it can be found under >> Go to Settings > Sending Domains in your Mandrill account.
Same way we need to verify the DKIM and SPF too and which can be done by updating the DKIM and SPF at the server side. You will be able to get the DKIM and SPF with the help of below steps :
Mandrilapp >> settings >> Sending Domains >> Domain name >> View DKIM Settings / View SPF Settings.
6) Webhooks :
Mandrill’s webhooks allow your application to receive information about email events as they occur it must be included with bounce back emails, reject emails etc.
Steps to add new webhooks :
- Navigate to Settings in your Mandrill account.
- Click Webhooks from the top menu.
- Click + Add a Webhook at the top of the page.
- Choose the events you want to listen for (for example, when an email is sent, bounces, is opened, is marked as spam, is clicked, etc.).
- Add your webhook URL under Post To URL.
- Give your webhook an optional description under Description.
- Click Create Webhook.
See Following Screenshot
7) Tracking & Return Path Domains:
When we send newsletters there must be unsubscribe link at the bottom as we are using mandrills app for sending newsletters it is importance to define the tracking and return path. Tracking and return path are linked to the unsubscribe link. It must be associated with our domain and that entry must be the cname for the sending domain, so that no can identify that we are sending emails using mandrill.
See Following Screenshot
Now you are done with the mandrill’s settings and ready to use it, you suppose to use those smtp details including the mandrill email id and the api key with your form which you are using for sending the newsletters.
.
.
That’s it.