In short, the steps are:
- register for Mandrill to get an API key
- load jQuery
- use $.ajax to send an email
Step 1: Get an API key from Mandrill
Step 2: Load jQuery & Mandrill API
Step 3: Use the $.ajax function to send an email
Here’s a working example with everything coming together:
See the Pen Send Emails Using AJAX – Mandrill API Example by Mike Doubintchik (@allurewebsolutions) on CodePen.
If you have any questions, please ask in the comments.