21

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?

1
  • What have you tryed so far? Show us what doesn't work and someone might be able to help you.
    – Rémi
    Commented Aug 13, 2013 at 14:49

3 Answers 3

38

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.

2
  • Did you tested this really? It seems not working at all. I have tried several time and in the logs its not showing anything.
    – user285594
    Commented Jan 14, 2014 at 17:36
  • 7
    I recently tested this and it works. However, I had to set "preserve_recipients":true for it to work like I expected. See the documentation. If you see no activity in the API log, you might want to check you are using the right API key and the right API URL.
    – angularsen
    Commented Sep 3, 2014 at 9:30
6

If you're trying to send an email to multiple users but don't want them to be able to see who you sent the email to, and not being able to "reply all", you can set preserveRecipients to false.

Source: http://help.mandrill.com/entries/21688056-Using-SMTP-Headers-to-customize-your-messages#preserve-recipient-headers-for-group-emails

0

If you are using transactional emails, you can bcc to only one person at a time

https://mailchimp.com/developer/transactional/api/messages/send-new-message/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.