Sendgrid recepients with the same email

元气小坏坏 提交于 2019-12-12 02:05:55

问题


In a NodeJs app I want to use SendGrid to send email reminders to people signed up to different kind of events. At a regular interval the app collect ready reminders and send these. The number or reminders can vary from zero to many at every check.

If for example 3 reminder-to-be-sent are found at a certain check, and two of these have the same recipient (same email), because it acutally is the same persone who has signed up on two different events. In this case I would actually need to send out two email (with different content/substitution) to the same email/recepient

Is several SMTP calls the best solution here?

This is related to this question.


回答1:


SendGrid will de-duplicate multiple instances of the same address within a single SMTP message. If you need to send multiple customized messages to the same address, you'll need to make sure they're unique SMTP messages, not just unique entries in the SMTPAPI header.




回答2:


As the answer to the related question suggests, SendGrid will remove duplicate email addresses from the 'To' field, so you would need to send the two reminders separately. However, from a user experience perspective, you may want to collate the reminders on the server side and combine them into one email for the user, altering the subject line to include the number of reminders that are in the email:

'Hey user, you have 2 new reminders!'



来源:https://stackoverflow.com/questions/28051007/sendgrid-recepients-with-the-same-email

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