SendGrid SMTP API:向同一收件人发送多封电子邮件 [英] SendGrid SMTP API: Multiple e-mails to the same recipient

查看:1474
本文介绍了SendGrid SMTP API:向同一收件人发送多封电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用SendGrid的X-SMTP功能的Web应用程序构建单个电子邮件,然后将其合并并转发到X-SMTPAPI头中指定的收件人列表。



文档资料: http://sendgrid.com/docs/API_Reference/SMTP_API/



我正在使用MVC.NET并通过smtp.sendgrid.net使用MailMessage对象发送电子邮件



尽管从头部合并值并发送电子邮件,一切似乎都能正常工作。



但是我注意到,如果我在到列表中多次指定相同的电子邮件地址,只发送一封电子邮件(或至少只收到一封电子邮件)。



<有没有人有相同的经验?任何人都知道要解决这个问题的方法?



提前感谢

解决方案

SendGrid的服务器将会重复使用 To 数组。解决这个问题的唯一方法是将重复的邮件分割成单独的SMTP邮件,或更改地址,使其不重复(您可以使用加号,例如 person@example.com person+foo@example.com )。


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!

解决方案

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).

这篇关于SendGrid SMTP API:向同一收件人发送多封电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆