Reputation: 8836
Based on SendGrid documentation here https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html#-Sending-the-same-Email-to-Multiple-Recipients
one email sent to Multiple TOs will result in:
These recipients will all be able to see each other on the email.
Other than this, you can use BCC to send your emails, in order to bypass recipient A to see the email address of recipient B etc.
So if you have 5000 emails and you want the recipient to get it by viewing only his email address on To
is to make a loop on your code, and send 5000 calls to SendGrid.
This question came out of mind when I saw the Crunchbase newsletter.
Is this something I am missing here?
{
"personalizations": [{
"to": [{
"email": "[email protected]"
}, {
"email": "[email protected]"
}, {
"email": "[email protected]"
}],
"substitutions": {
"%fname%": "recipient",
"%CustomerID%": "CUSTOMER ID GOES HERE"
},
"subject": "YOUR SUBJECT LINE GOES HERE"
}]
}
Upvotes: 1
Views: 1032
Reputation: 16050
personalizations
is a list, split the recipients there, not inside to
. i.e.
{
'personalizations': [
{'to': [{'email': '[email protected]', 'name': 'Foo'}]},
{'to': [{'email': '[email protected]', 'name': 'Bar'}]}
]
}
Upvotes: 0