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.

Notification Routing

  1. Hi
    I have set up a form with 6 checkboxes.
    Each checkbox selected by the user sends an notification to that specific mail (as I set up in the routing notification area)
    The problem occurs when the user selects more than one checkbox - the emails aren't sent to any of the ones I setup.
    If the user selects only one checkbox - the mail is sent correctly.

    Any ideas why it's not working?

    Thanks
    Dan

    Posted 14 years ago on Tuesday July 6, 2010 | Permalink
  2. Hello Dan, we will try and recreate this issue on our end and see what is going on. Thanks!

    Posted 14 years ago on Tuesday July 6, 2010 | Permalink
  3. We are actually unable to recreate this issue on our end. We are able to have multiple checkboxes, setup routing on them and receive emails regardless of how many checkboxes are selected. If you use our Contact Us form to send us a WordPress admin login to this site we'd be glad to take a look and see what is going on.

    Posted 14 years ago on Tuesday July 6, 2010 | Permalink
  4. Hi Carl
    Did you have an opportunity to check the checkbox issue?
    I've sent you the wordpress admin login.
    Thanks,
    Dan

    Posted 14 years ago on Thursday July 8, 2010 | Permalink
  5. So here is where we are at. Your SMTP setup is refusing to send emails if the To contains a comma separated list of email addresses, which is how we send to multiple recipients. This is why it is failing on multiple but working on one.

    If you go to this page here in your admin:

    http://go.uni.ac.il/wp-admin/options-general.php?page=wp-mail-smtp%2Fwp_mail_smtp.php

    At the very bottom of that page is a "Send a Test Email" form. If you enter a single email address and run the test it works, if you enter a comma separated list it fails. This is highly unusual as just like with your email client you should be able to send email to a comma separated list of addresses.

    If you test it using that test form and enter a comma separated list of emails you will see it return a really long results message, at the bottom of that message is this error:

    SMTP -> ERROR: RCPT not accepted from server: 501 5.1.3 Bad recipient address syntax

    We haven't encountered this before and it appears to be due to how your SMTP server handles email that contains multiple recipients. It might be some sort of localization issue. How do you send email to multiple recipients in hebrew? Do you use a comma to separate them in the email client?

    Posted 14 years ago on Thursday July 8, 2010 | Permalink
  6. Hi Carl
    Thanks for your answer
    regarding the hebrew - I don't think it's an issue with the mail since the address is in english.
    But, since this website is hosted on a university server it might have some limitations which should be resolved.
    Just to get it clear before I talk to the IT team in the university: SMTP can send multiple recipients, correct?

    Dan

    Posted 14 years ago on Thursday July 8, 2010 | Permalink
  7. SMTP should be able to send to multiple recipients. This is the first time we have encountered this issue and we have many users using Routing with and without SMTP. It appears your SMTP setup doesn't allow the TO address to contain multiple comma separated email address.

    Posted 14 years ago on Thursday July 8, 2010 | Permalink
  8. I just found out what the problem was:
    Wordpress does not allow more than 1 recipient being sent via smtp .
    The good news is that you can change this in the wp_mail function.

    The full guide is here:
    http://www.theblog.ca/wordpress-smtp

    Thanks for your help, and if any other people had this problem, this can solve it, I checked.

    Dan

    Posted 14 years ago on Friday July 9, 2010 | Permalink
  9. Good to know Dan! Thanks for pointing this out. We are discussing adding SMTP support directly in Gravity Forms so you can use SMTP without installing another plugin and we will be sure to include this override when we do.

    Posted 14 years ago on Friday July 9, 2010 | Permalink
  10. Dan, that multiple email address thing in wp_mail() was fixed a few months back. What version of WordPress were you using?

    http://core.trac.wordpress.org/ticket/10420
    http://core.trac.wordpress.org/changeset/13456

    EDIT: I just checked a svn 2.9.2 installation and it is revision 13165, so maybe this is only a problem prior to WordPress 3.0?

    Posted 14 years ago on Friday July 9, 2010 | Permalink