SendGrid SMTP API: Multiple e-mails to the same recipient

爷,独闯天下 提交于 2019-12-07 00:21:34

问题


I have a web app that uses SendGrid's X-SMTP functionality to construct a single e-mail that is then merged and forwarded to a list of recipients specified in the X-SMTPAPI header.

Documentation here: http://sendgrid.com/docs/API_Reference/SMTP_API/

I am using MVC.NET and sending the e-mail using a MailMessage object via smtp.sendgrid.net

Everything seems to be working fine as far as merging values from the header and sending out the e-mails is concerned.

However I have noticed that if I specify the same e-mail address multiple times in the "to" list, only a single e-mail is sent out (or at least I just receive the one).

Has anybody had the same experience? Anybody know of a way to get around this issue?

Thanks in advance!


回答1:


SendGrid's servers will de-dupe the To array. The only way to get around this is to split duplicates into separate SMTP messages, or to change the addresses so they are not duplicates (you could use plus addressing, e.g. person@example.com and person+foo@example.com).



来源:https://stackoverflow.com/questions/21610981/sendgrid-smtp-api-multiple-e-mails-to-the-same-recipient

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!