Mandrill Send Email-Template
This graph allows Kitewheel to integrate with the Mandrill API - Messages Send-Template endpoint, an email infrastructure service offered as an add-on for MailChimp that you can use to send personalised, one-to-one e-commerce emails. This requires an account with Mandrill.
Email templates are configured in Mandrill (or Mailchimp and exported to Mandrill). These templates can be sent by providing a set of data that feeds into various parameters in the template such as email address, customer name, product or order number.
This template will call the Mandrill API - Messages Send-Template endpoint and save the action in the interaction and chanEmailMandrill table.
Explaining Mandrill to a client
Mandrill is a transactional email RESTful API for MailChimp users. The API allows emails to be personalized for one-to-one messages. To use Mandrill, the user must use a unique API key found in their Mandrill account, and send a POST request to an endpoint. All methods are accessed via https://mandrillapp.com/api/1.0/SOME-METHOD.OUTPUT_FORMAT. The supported output formats are JSON (default), XML, YAML, and PHP. The official API clients are curl, JSON, python, PHP, ruby, node.js, and dart. The API documentation can be found here.
Package contents
- Graphs:
- Refresh App Params Graph Template - follow instructions
- mandrillSendEmailTemplate
- Schema
Setup
- Follow the instructions for the setup of the Application Parameters Graph Template
- Create a Mandrill account
- Log in to https://mandrillapp.com/settings, create (if required) and retrieve the API key
Create the required tables using the SQL below
INSERT INTO appParams(paramKey,paramValue,paramType,description) VALUES ('mandrillAPIKey', 'YOUR API KEY GOES HERE', 'string', 'This is the API Key for Mandrill');
- Deploy the 'Mandrill - SendEmailTemplate' Template
- Configure the Mandrilld REST Web Service connection with the following details:
- Endpoint: https://mandrillapp.com/api/1.0
Using
- Ensure there is credit in the Mandrill accounte
- Place the mandrillSendEmailTemplate node in your graph
- The expected outputs for this graph are true, 'metaSet' (indicates error). The parent graph should also accomodate GoTo and Error branches
Set graph parameters "emailAddress", "recipientName", "templateName" and "mergeVars"
- The result of the Mandrill webservice call is stored in "{schema}.interaction.email.mandrill.response" and saved in the chanEmailMandrill table
Notes:
What is likely to go wrong
- Run out of Mandrill credit
- Ensure you have credit in your account!
- The web service adaptor returns a "rejected", or "invalid" status. Check the reject_reason for rejects.
- Inspect the interaction.email.mandrill.request body. It should look like this:
Typical Deliverables Plan
Use this plan to agree the requirements from the Kitewheel User and your client/ brand
Related pages
Privacy Policy
© 2022 CSG International, Inc.