You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate emails in the Personalization object are not allowed, make this obvious #788
changed the title [-]Bug: can't BCC an email recipient[/-][+]Duplicate emails in the Personalization object are not allowed, make this obvious[/+]on Apr 24, 2019
So I think I have a solution for this right now. Do we want to de-dupe on a Mail object's construction, or do we want to de-dup emails whenever possible on the Personalization object, including on setters? Currently, I'm doing it on a Mail object's construction (more specifically, in Personalization.add_email), and whenever Personalization.add_to, Personalization.add_bcc, or Personalization.add_cc are called. Essentially, I just check if the email already exists somewhere in _tos, _bccs or _ccs, and if so, we don't add the email.
I am sending login details to users with personalization in bulk (say 500 users at one time). in my application 2 users can have same email.
When I send emails , if 2 users have same email, only one is delivered.
Is there a setting to ignore duplicate emails, as with personalization contents may be different.
I am sending login details to users with personalization in bulk (say 500 users at one time). in my application 2 users can have same email. When I send emails , if 2 users have same email, only one is delivered. Is there a setting to ignore duplicate emails, as with personalization contents may be different.
Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at support.sendgrid.com.
Activity
thinkingserious commentedon Apr 24, 2019
Thanks for taking the time to post this issue @tomwwagstaff-product!
It is expected behavior for the Twilio SendGrid API to reject emails that have duplicate emails within the Personalization object.
We should provide a meaningful error when someone attempts to add duplicate emails.
[-]Bug: can't BCC an email recipient[/-][+]Duplicate emails in the Personalization object are not allowed, make this obvious[/+]DougCal commentedon Jul 6, 2020
Going to look into this one
childish-sambino commentedon Jul 6, 2020
Note that in C# we now de-dupe the recipients rather than error: sendgrid/sendgrid-csharp#991
DougCal commentedon Jul 10, 2020
So I think I have a solution for this right now. Do we want to de-dupe on a
Mailobject's construction, or do we want to de-dup emails whenever possible on thePersonalizationobject, including on setters? Currently, I'm doing it on aMailobject's construction (more specifically, inPersonalization.add_email), and wheneverPersonalization.add_to,Personalization.add_bcc, orPersonalization.add_ccare called. Essentially, I just check if the email already exists somewhere in_tos,_bccsor_ccs, and if so, we don't add the email.childish-sambino commentedon Jul 10, 2020
I think de-dupe whenever possible, but not de-dupe across to/cc/bcc; dupes are allowed between them.
kamaldua65 commentedon Mar 17, 2021
I am sending login details to users with personalization in bulk (say 500 users at one time). in my application 2 users can have same email.
When I send emails , if 2 users have same email, only one is delivered.
Is there a setting to ignore duplicate emails, as with personalization contents may be different.
mohankr123 commentedon Feb 18, 2022
Same issue. Did you get any solution?
childish-sambino commentedon Feb 18, 2022
Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at support.sendgrid.com.