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.

Change notification email format:

  1. We have a form whose output will be emailed in plain text format to an email address, from which it will be processed via Java into a third party system (CRM).

    We have modified common.php to email the data in text format not HTML so that's OK.

    Currently the email administrator notification is sent in the format:

    Field1: 4520 (where '4520' is just a text input

    Field 2: 1 (where '1' is the boolean value of a radio button field - ie either 0 or 1)

    Field3: 0 (as per Field 2)

    We need to change the format of the email so it becomes:

    Field1=4520
    Field2=1
    Field3=0

    In other words we need to:

    remove empty lines between fields; and
    replace the ':' character and following space with the '=' char for each entry.

    before the email is sent off.

    To achieve this could we use the the Gform_after_submission hook in the theme's functions.php file? If so how would this be coded to reformat the notification as above?

    Thanks

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink
  2. David Peralty

    Please don't change core files. You can use the following hook to change the type of e-mail (notification format) and the content of the e-mail: http://www.gravityhelp.com/documentation/page/Gform_notification

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink

This topic has been resolved and has been closed to new replies.