asp.net - how to send one email to multiple recipents in sendgrid email in c# using smtp api -
asp.net - how to send one email to multiple recipents in sendgrid email in c# using smtp api -
scenario have thousands of email want send email help of ( using asp.net c#) https://sendgrid.com/docs/integrate/code_examples/csharp.html can iterate emails , send emails them (body of html same , recipients different) taking much time.
things done have tried add together multiple recipent in "to" , send shows emails every 1 have tired add together multiple recipents in bcc , shows undiscolsed
i have read sendgrid manage take values , send 1 1
from documentation @ https://sendgrid.com/docs/api_reference/web_api/mail.html command
this can passed in array, send multiple locations. example: to[]=a@mail.com[]=b@mail.com. note recipients passed in parameter visible part of message. if wish hide recipients, utilize parameter in x-smtpapi header.
and next link gives illustration x-smtpapi header
{ "to": [ "<ben@example.com>", "joe smith <joe@example.com>" ] } c# asp.net email sendgrid bulk
Comments
Post a Comment