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?
-
What have you tryed so far? Show us what doesn't work and someone might be able to help you.– RémiCommented Aug 13, 2013 at 14:49
3 Answers
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.
-
Did you tested this really? It seems not working at all. I have tried several time and in the logs its not showing anything.– user285594Commented Jan 14, 2014 at 17:36
-
7I 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. Commented Sep 3, 2014 at 9:30
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.
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/