• Resolved mariotux

    (@mariotux)


    My application in WP sends emails using Contact Forms 7 and I uses Post SMTP to used SendGrid of such emails. I faced the following error: if I send an email with the same email in TO and CC (the user filling the registration form could use the same email address in the two different fields…) then I get the following error in the log: “Each email address in the personalization block should be unique between to, cc, and bcc. We found the first duplicate instance of [XXXX@YYY] in the personalizations.0.cc field.”.
    It looks a restriction of the SendGrid API but in this way Post SMTP can’t guarantee the same behavior switching from a method to another. Could Post SMTP manage this removing the duplicates filling the personalizations structure?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • yehudah

    (@yehudah)

    In the old API, I did it.

    In the new sendgrid API I added recently I thought to myself: “why a user will want duplicate emails…?” And I decided to leave it.

    What do you mean by switching methods?

    Thread Starter mariotux

    (@mariotux)

    I mean that in behavior of the Post SMTP should be the same with all the sending method. I agree that this is a silly SendGrid choice but making this workaround in Post SMTP could guarantee uniformity in all the methods supported by Post SMTP (I recently switched from GSuite to SendGrid but now this stopping problem).
    This problem could be fixed in the application passing the email to Post SMTP but I can’t make this kind of check in CF7.

    I’m wondering if you are willing to support this workaround.

    yehudah

    (@yehudah)

    I will do it.

    Just curious why a recipient would need to get the duplicate email? Like in your case.

    Thread Starter mariotux

    (@mariotux)

    It’s a registration form for a conference: there is an attendee and a payer; they could be different persons. Some stupid user select that the two profiles are different but fill-up the two email fields with the same address. I have to manage the monkeys…

    Thank you!

    yehudah

    (@yehudah)

    Great ??

    Thread Starter mariotux

    (@mariotux)

    As soon as you push the fix in some svn/git repository, I could test it.

    Thanks again.

    • This reply was modified 5 years ago by mariotux.
    yehudah

    (@yehudah)

    We have a deal!

    Thread Starter mariotux

    (@mariotux)

    any news on the fix?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sendgrid vs. duplicate recipients’ is closed to new replies.