Adding a second email to form notifications

  • Unknown's avatar

    Hey there- I’ve got several forms on my site and I would like for notifications from these forms to go to two people, myself and one other person. I’ve added the email addresses into the form, but neither one of us is receiving notifications now (I’ve tested this before and gotten the notification in my email). Is there another way to tell WordPress that I want notifications at both email addresses?

    The blog I need help with is: (visible only to logged in users)

  • When you say it isn’t working, you’ve added the email as per these instructions, correct:

    http://en.support.wordpress.com/contact-form/#notification-preferences

  • Unknown's avatar

    I’m working on this problem and having similar difficulties. Just to make sure we are both doing the same thing can you confirm that you used this process to add both of the e-mail addresses to the notification window?

    Notification preferences

    When a user submits your contact form, it will be emailed to the author of the post/page (to the email address that they have on file for their WordPress.com account here), and the subject line will be the title of your post. If you wish, you can change both the recipient and the email subject of your emails by clicking the “Email notifications” tab. Separate recipient emails with a comma to send to multiple recipients. You can also change the email address and subject using the shortcode (see below).

    http://en.support.wordpress.com/contact-form/

    Also, could you let me know if your test messages are showing up on your dashboard under “feedback”?

    Thanks!

  • Unknown's avatar

    staff-ozmodiar

    I was able to replicate this problem. When you enter the e-mail notification info as instructed the generated shortcode looks like this:

    [contact-form to='email1%26#x002c; email2' subject='your subject line']

    In order for it to work it needs to look like this:
    [contact-form to='email1';'email2' subject='your subject line']

  • Unknown's avatar

    Sorry, I was wrong. In order for both people to get it the shortcode should look like this:

    [contact-form to='email1, email2' subject='your subject line']

    the other way only the first person gets it.

    I tested in Chrome Version 37.0.2062.94 on the latest version of OSX in case it matters.

  • @lizthefair

    I’m confused. Are you saying that is different from the instructions linked above?

  • Unknown's avatar

    Sort of. When you follow the instructions linked above, you use the dialog box to enter your information. The problem is the shortcode that results is *slightly* wrong. The dialog box renders a shortcode like this: (Along with the rest of the contact form, but this first part is what’s relevant to this problem.

    [contact-form to='email1%26#x002c; email2' subject='your subject line']

    the “%26#x002c;” part is the problem. When the code is rendered like that, entering a message in the contact form doesn’t do anything. When you fix the code by hand so it looks like this:[contact-form to='email1, email2' subject='your subject line']everything works fine.

    So my guess is something is wrong with the code that renders the shortcode from the dialog box info.

    Is that a little more clear?

  • Interesting.

    I will look into that.

    Thank you VERY much for taking the time to both look into it and to explain here. I appreciate it.

  • Unknown's avatar

    My pleasure. The mysterious ones are extra fun :)

    @lcdreyer in the meantime you can solve your immediate problem by updating the first part of the shortcode for your contact form to follow this format. Let us know if you still have trouble!

    [contact-form to='email1, email2' subject='your subject line']

  • The topic ‘Adding a second email to form notifications’ is closed to new replies.