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": "recipient1@example.com"
}, {
"email": "recipient2@example.com"
}, {
"email": "recipient3@example.com"
}],
"substitutions": {
"%fname%": "recipient",
"%CustomerID%": "CUSTOMER ID GOES HERE"
},
"subject": "YOUR SUBJECT LINE GOES HERE"
}]
}
personalizations
is a list, split the recipients there, not inside to
. ie
{
'personalizations': [
{'to': [{'email': 'foo@bar.com', 'name': 'Foo'}]},
{'to': [{'email': 'bar@foo.com', 'name': 'Bar'}]}
]
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.