title: Mailchimp (mandrill) transactional emails: how to add custom data to email templates?
body: <p>I want to be able to send an email template to a customer which contains some data that is specific to the individual customer (e.g an order number, or a temporary password)</p>
  <p>I've designed an email template which I intend to send to customers, but I'm not sure how to add this dynamic data to the template.</p>
  <p><a href="https://i.stack.imgur.com/iL1oU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iL1oU.png" alt="enter image description here" /></a></p>
  <p>I'm using the API to send emails to customers, and I've learnt that you can send templates to customers with a request like so:</p>
  <p>POST: <a href="https://mandrillapp.com/api/1.0/messages/send-template" rel="nofollow noreferrer">https://mandrillapp.com/api/1.0/messages/send-template</a></p>
  <p>Request Body:</p>
  <pre><code>{&quot;key&quot;:&quot;myApiKey&quot;,&quot;template_name&quot;:&quot;test&quot;,&quot;template_content&quot;:[],&quot;message&quot;:{&quot;html&quot;:&quot;&quot;,&quot;text&quot;:&quot;&quot;,&quot;subject&quot;:&quot;Template sending test&quot;,&quot;from_email&quot;:&quot;someEmail&quot;,&quot;from_name&quot;:&quot;Company Name&quot;,&quot;to&quot;:[{&quot;email&quot;: &quot;someOtherEmail&quot;, &quot;type&quot;: &quot;to&quot;}]}}
  </code></pre>
  <p>Is it possible to add custom data such as { &quot;orderNumber&quot;: &quot;12345&quot; } to the json, and if so how would the template know to render that in in the template email? I assume there must be a field you create which corresponds to the data in the post request.</p>
  <p>I had a look at the metadata tags in the documentation, which allow you to add &quot;custom, individualized metadata to messages&quot; but it doesn't sound like you can add this data to an email template?</p>