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.

Disable HTML in Notification Email

  1. I really need to make my notification emails TEXT rather than HTML.

    I've seen that I should do this in the common.php file, but not sure where or how.

    Any help would be very appreciated. Thanks.

    Posted 12 years ago on Thursday September 29, 2011 | Permalink
  2. In Gravity Forms v1.6, which is currently a test release, there is a hook that can be used to set the format of the email. It is documented here:

    http://www.gravityhelp.com/documentation/page/Gform_notification_format

    Posted 12 years ago on Thursday September 29, 2011 | Permalink
  3. erictan
    Member

    Found a bug in gform_notification_format. Missing parameter in the filter.

    Original in common.php:

    $message_format = apply_filters("gform_notification_format_{$form["id"]}", apply_filters("gform_notification_format", "html", "admin", $form, $lead), $form, $lead);

    Fixed:

    $message_format = apply_filters("gform_notification_format_{$form["id"]}", apply_filters("gform_notification_format", "html", "admin", $form, $lead), "admin", $form, $lead);
    Posted 12 years ago on Wednesday October 26, 2011 | Permalink
  4. Hi Erictan,

    Thanks for catching this. It's been updated. Would you like the updated version or can you hold off until 1.6 is released next week?

    Posted 12 years ago on Wednesday October 26, 2011 | Permalink
  5. erictan
    Member

    No hurry. I have already fixed it on my server.

    Posted 12 years ago on Wednesday October 26, 2011 | Permalink
  6. Thank you for catching that.

    Posted 12 years ago on Thursday October 27, 2011 | Permalink

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