PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Notifications not sending to BCC recipients in one specific situation

  1. pubmark
    Member

    Hi — I'm experiencing an unusual problem and wanted to check if this was a known issue or a configuration error on my end.

    My form has a user notification email set up. In the BCC field, I have comma-separated merge tags for three email address fields entered by the user when the form is completed. I.e.: {Email Address:1},{Email Address:2},{Email Address:3}

    The notification works perfectly fine when the user completes all three address fields, or even just the first two fields. But if the user only completes the _first_ address field, then the notification doesn't BCC to that address — only the To recipient receives it.

    I'm using WP-Mail-SMTP, but I've found that this problem is consistent across SMTP, PHP mail() function, etc. I'd be grateful for any suggestions!

    Posted 12 years ago on Tuesday September 25, 2012 | Permalink
  2. This is not a common or known issue so we will need to try a couple things to narrow it down.

    If you hard code the addresses which were submitted in the form, will the notifications arrive reliably?

    Can you try those merge tags individually or in other combinations to see if it has any effect?

    Can you change the order of the merge tags to see if it is something with {Email Address:1} or if it is related to the first email address which appears in the BCC?

    Posted 12 years ago on Wednesday September 26, 2012 | Permalink
  3. pubmark
    Member

    Chris — Thanks for your help. Here's what I've found:

    - If I hard code only the first address in the BCC line — i.e. "email@foo.bar,{Email Address:2},{Email Address:3}" — and then submit the form without completing the second and third address fields, the problem persists; no notification is sent to email@foo.bar

    - However, if I hard code all three addresses in the BCC line, the notifications arrive reliably

    - If I try the merge tags individually in the BCC line, they work fine

    - I tried different orders in the BCC line, and the problem looks to be tied to the first email address in the BCC, rather than to a specific field or merge tags

    Posted 12 years ago on Thursday September 27, 2012 | Permalink
  4. pubmark
    Member

    Chris — Anything else we should try on our end that might narrow this down?

    Posted 12 years ago on Thursday October 4, 2012 | Permalink
  5. I don't have any other suggestions for making this work. I have not seen this problem before. If we can't figure out why it does not work, maybe there is a way to work around the problem? Would you be open to that?

    Posted 12 years ago on Friday October 5, 2012 | Permalink
  6. pubmark
    Member

    Chris — We'd certainly be open to a workaround if there is one, and we're willing to try anything.

    The problem only appears on forms with three or more user-supplied BCC recipients, so for the moment we've restructured our form so that there are only two Email Address fields. But we'd love to be able to get this working with three fields, if there's a way.

    Posted 12 years ago on Tuesday October 9, 2012 | Permalink