Send email via the Mandrill API containing multiple BCC addresses

Lizza picture Lizza · Aug 13, 2013 · Viewed 12.9k times · Source

Is their any way to send email via the Mandrill API which contain multiple BCC address? Mandrill API documentation displays only a single bcc_address in their API. So is it not possible send email which contain multiple BCC addresses?

Answer

Anirvan picture Anirvan · Oct 26, 2013

Yup totally doable! According to the Mandrill API send documentation, you can specify multiple addresses in the to field, and mark them as type bcc.

Here's an example:

{
   "to":[
      {
         "email":"[email protected]",
         "name":"Recipient Name",
         "type":"to"
      },
      {
         "email":"[email protected]",
         "name":"BCC Recipient Name 1",
         "type":"bcc"
      },
      {
         "email":"[email protected]",
         "name":"BCC Recipient Name 2",
         "type":"bcc"
      }
   ]
}

Hope this helps.