How do you send an email to multiple recipients without each recipient seeing the other recipients using the Web API?
I've tried:
- Setting each recipient using the "to[]" parameter shows each recipient the entire recipient list.
- Setting each recipient using the "bcc[]" parameter works but then we also have to set something as the "to" parameter which then also gets the email. Plus this seems kinda hoky and I'm not sure if sending all emails as "BCC" affects deliverability/spam or reputation.
- Setting the recipients in the "to" value for the "X-STMPAPI" field. I'm not sure if this sends to each recipient individually but I did a test of a few hundred all sent to my gmail account as different addresses (using the plus sign) and noticed that only 1 email seemed to come through whereas using the normal "to[]" field I would see all 500 or so emails addresses listed that I sent to (when clicking on triangle button next to the "to: me" display). So I would see: me+1@company.com, me+2@company.com, ... me+500@company.com.
Am I missing something?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
Send email to multiple recipients using Web API without them seeing entire recipient list
Official
Response
-
Hi,
In order to accomplish what you want, the x-smtpapi field is your best, and probably only, option.
The reason gmail only delivered 1 copy, despite sending it to multiple addresses with the + option, is because of how gmail handles multiple copies of messages with the same smtp message-id field. At some point we'll make it so that the message-id is changed on every email with the x-smtpapi header, but for now whats happening is gmail thinks it is a duplicate message and just displays it once.
Regards,
Tim
-
I just saw this question asked and answered a little bit ago which seems very similar.
http://community.sendgrid.com/sendgri...
Should I just use the "to" value within the x-smtpapi field? -
-
The first option should work to send a unique copy to each individual, as per the documentation. If you're still having problems, please contact Support with your URL call.
-
-
I just ran a few more tests, changing the method in which the recipient addresses are sent and have determined the follwing.
1. Defining addresses using the x-stmpapi field does NOT show the entire recipient list to each recipient when the email is received. (what I want)
2. Defining addresses using the normal "to[]" field does show the recipient list to each recipient. -
-
Hi,
In order to accomplish what you want, the x-smtpapi field is your best, and probably only, option.
The reason gmail only delivered 1 copy, despite sending it to multiple addresses with the + option, is because of how gmail handles multiple copies of messages with the same smtp message-id field. At some point we'll make it so that the message-id is changed on every email with the x-smtpapi header, but for now whats happening is gmail thinks it is a duplicate message and just displays it once.
Regards,
Tim -
-
-
Loading Profile...





EMPLOYEE
