Reputation: 227
SendGrid has the capability to send to multiple recipients with one call to its SMTP API by adding 'To' recipients in X-SMTPAPI Header : http://sendgrid.com/docs/API_Reference/SMTP_API/index.html.
You can customize the body of the email for each recipient using substitutions: http://sendgrid.com/docs/API_Reference/SMTP_API/substitution_tags.html
But I can't find a way to send customized CC and BCC for each recipient. I want to send different CC and BCC addresses for each email. How to do that?
Thanks...
Upvotes: 1
Views: 2298
Reputation: 13188
There is no way to customize a CC or BCC through the X-SMTPAPI header on a per message basis. You could however, assign a BCC or CC that would apply to all the emails you're sending.
So for example, if you're sending out something that looks like this:
"x-SMTPAPI": {
"to": ["[email protected]", "[email protected]", ...],
"bcc": ["[email protected]", "[email protected]"],
...
}
Both [email protected] and [email protected] would receive emails and [email protected] and [email protected] would be BCC'ed on both emails that went out.
Upvotes: 0