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.

Send Form to Email Addresses Entered in the Form

  1. I have the following form:

    http://intranet.ribblesdale.org/form-generator/

    I want the user to be able to enter addresses in the Email Address input box (there could be up to 15 separated with a semi colon) and then when they press submit the admin notification email (set in the admin) gets sent to these email addresses.

    How would I go about doing this?

    Posted 11 years ago on Wednesday May 2, 2012 | Permalink
  2. Mark, it will be easier to use a list field here for the email addresses. So replace with a list field and set Maximum Rows to 15. Then in the notifications area follow this idea:

    http://www.gravityhelp.com/forums/topic/support-question#post-56572

    Posted 11 years ago on Wednesday May 2, 2012 | Permalink
  3. Thanks for that reply but the users will be pasting the address into the Email Addresses field in the following format:

    mail@example.com; mail2@example.com; mail3@example.com

    They come from another system and therefore this would be harder to do in list format. Is there no way it can be done with the existing field.

    Posted 11 years ago on Wednesday May 2, 2012 | Permalink
  4. David Peralty

    If you could get them to use commas to separate the e-mail addresses, you could just use an input field and then in the BCC field of notifications put the merge field for it and it should work. If you can't control the separator then you'll have to use a function to replace the semi-colons with colons. Also, you couldn't easily set a limit on the field other than number of characters. If you wanted it to better understand how many e-mails are in the form, then you would have to do some PHP coding.

    Posted 11 years ago on Wednesday May 2, 2012 | Permalink