Gravity Forms admin email to text instead of html

As of Gravity forms 1.6 and even 1.7 there’s no way to change the email format without editing PHP. The exact PHP edit has changed from 1.6 to 1.7 (beta)

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

Examples

This example sets admin notifications to be sent in Text format and user notifications to be sent in HTML format.

01 <?php
02 add_action("gform_notification_format", "set_notification_format", 10, 4);
03 function set_notification_format($format, $notification_type, $form, $lead){
04
05     if($notification_type == "admin")
06         return "text"; //setting admin notifications as text
07     else
08         return "html"; //setting user notifications as text
09 }
10
11 ?>

Source Code

This filter is located in common.php

Leave a comment