The “gform_html_message_template_pre_send_email” filter in Gravity Forms allows the template for the HTML-formatted message to be overridden.
gform_html_message_template_pre_send_email
Usage
add_filter( 'gform_html_message_template_pre_send_email', 'notification_template' ); function notification_template( $template ) { $template = ' <html> <head> <title>{subject}</title> </head> <body> {message} </body> </html>'; return $template; }
Parameters
-
$template string
The template for the html formatted message. Use {message} and {subject} as placeholders.
Source
- common.php