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.

Unable to send XML tags to admin notification

  1. I am using version 1.7.3 and I am trying to get text sent to the admin email that retains the XML tag fileds delimited by < and >.

    This is the php code in functions.php

    /**
    * GravityForms
    * send notifications as text
    */
    add_filter('gform_notification', 'change_notification_format', 10, 3);
    function change_notification_format( $notification, $form, $entry ) {

    $notification['message_format'] = "text"; //changing notification format to text

    return $notification;
    }

    This is the notification message.

    {all_fields}

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Computer XML data

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    <firstname>{First name:1}</firstname>
    <middlename>{Middle:2}</middlename>
    <lastname>{Last name:3}</lastname>
    <Address_line1>{Address (Street Address):12.1}</Address_line1>
    <Address_line2>{Address (Address Line 2):12.2}</Address_line2>
    <Address1_city>{Address (City):12.3}</Address1_city> ...

    And text received by the admin email has & l t {data} & g t instead of <{data}>

    As a result, the data import function into my database can't read the XML tags because of the missing carats

    Posted 11 years ago on Tuesday May 21, 2013 | Permalink
  2. oops - the received email content got formatted correctly in the post...

    What the text looks like is the & g t; instead of > and & l t instead of <

    Posted 11 years ago on Tuesday May 21, 2013 | Permalink
  3. Anyone have an idea about controlling the format of the admin notifications?

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink