'How can i select an email template to use with a transactional mailchimp email using curl?
I am trying to to send a transactional email with mailchimp using a custom template. I have followed the instructions here: https://mailchimp.com/developer/transactional/docs/templates-dynamic-content/
and i can succesfully send an email with the following command, but it fails to use my template, i have tried adding 'template_name' as the documentation states, but their are no Curl examples.
MESSAGE='{"key": "API KEY", "message": {"from_email": "[email protected]", "subject": "Hello World", "text": "Welcome to Mailchimp Transactional!", "to": [{ "email": "[email protected]", "type": "to" }]}}'
curl -sS -X POST "https://mandrillapp.com/api/1.0/messages/send" --header 'Content-Type: application/jsoN, template_name: TEMPLATENAME ' --data-raw "$MESSAGE"
How can i make this work?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
