Search code examples
mailchimpmandrill

Send email via the Mandrill API containing multiple BCC addresses


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?


Solution

  • 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.

    Also make sure you're passing the value "preserve_recipients": true under the message section.