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 to all Email fields on the form

  1. The forms I am implementing are for general HR requirements, when an employee is completing a form they must enter their own email address (a copy for their own records), a Line manager email address (they need to be notified when requests are made), a HR Manager (some of the emplopyees requests require a supervisor to be aware of the request). When the employee submits the form notifications need to be sent to all of these entered email addresses.

    In summary Is it possible to send notifications to all email fields used on the forms rather than only being able to select one? aswell as using routing to determine which department the form should be sent to.

    Posted 14 years ago on Wednesday September 15, 2010 | Permalink
  2. Yes, this is possible using an API hook and custom code. It isn't something Gravity Forms does out of the box. You would need to now some PHP and WordPress development to implement this, or hire a consultant with Gravity Forms experience to do so.

    Here is a thread that discusses this:

    http://forum.gravityhelp.com/topic/send-notification-to-more-than-one-email

    Posted 14 years ago on Wednesday September 15, 2010 | Permalink
  3. Ok I have checked out your link, in order to maintain the usability of the solution i am implementing, I would like to write a generic PHP script that takes the field values and parses them into a table (similiar to the out put that gravity forms already does) but grabs any email fields and sends this output to all of them.

    In summary a generic script that parses the values for email addresses and forwards to all of them. I am unfamiliar with Gravity Forms, is there a simpler way to achieve this? perhaps using the Gravity Forms Plugin? It is imperative to maintain the usability

    Posted 14 years ago on Thursday September 16, 2010 | Permalink
  4. If you dynamically generate the Send To address using the example I referenced above there are no usability issues. To the end user it is just a form. Your form would have 3 email address fields where the user enters the email addresses, and then the custom PHP takes care of sending the notification to all 3.

    You could also use a drop down field for the line manager and HR person so that they select these people from a drop down rather than entering an email. Then store the email address as the value for that drop down item and use custom PHP to get these when combining the three addresses.

    Posted 14 years ago on Thursday September 16, 2010 | Permalink