I want to send an email to multiple recipients.
I used personalizations, but everyone's emails appears on the "to" field, which violates their privacy.
I don't want to use BCC as this often goes straight to junk (e.g. http://www.standss.com/blog/index.php/why-you-should-avoid-using-bcc-for-emails/).
Therefore my question is, how can I send an email to multiple recipients without everyones emails appearing on the "to" field.
My only alternative I can see is send a separate request to the API for each and every email using a loop which is very resource intensive and time consuming when I have a lot of emails to send!
When using SendGrid's Personalizations with multiple recipient groups, you need to define multiple 1st-level objects within the Personalization array.
So instead of:
{"personalizations": [
{"to": [
{"email": "recipient1@example.com"},
{"email": "recipient2@example.com"}
]}]}
which will all be a common To:
array that can see each other,
You want:
{"personalizations": [
{"to": [{"email": "recipient1@example.com"}]},
{"to": [{"email": "recipient2@example.com"}]}
]}
Within each personalization level, you can customize the content, subject, substitution tags, pretty much everything.
So you can build out the full personalization, and iterate through those 1000 times. Once you have your 1000 recipients, bundle them into a single API call, then send that.