sendgrid - Send mail for multiple user and the each recipents have only his email address not the others -
i new bie send grid. have checked url 2 emails "https://sendgrid.com/api/mail.send.js..." , got mail in both emails.
the mail received users above url have both email address in "to" field ex. user test to: test@example.com;test2@example.com. , user test2 to: test@example.com;test2@example.com.
as per requirement want send mail multiple user , each recipents have email address not others. ex. user test to: test@example.com , user test2 to: test2@example.com.
can scenario possible send grid.
thanks
you can send same email multiple recipients using sendgrid smtp api's to
parameter.
to you'll set x-smtpapi:
header in message, header include json communicate sendgrid's smtp api. header such:
x-smtpapi: { "to": [ "test@example.com", "test2@example.com" ] }
each recipient receive unique email, addressed only them.
be aware: you'll still need set to:
header message send, can set or 1 of recipients (and exclude them json list).
Comments
Post a Comment