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.

Add Extra HTML to the Admin Notification Email

  1. mordauk
    Member

    I'm looking for a way to attach extra HTML to the admin notification email. Basically I'm going to have a lot of analytics data stored in an HTML table and I need to attach it to the bottom of the email.

    I've looked through the developer docs but have not been able to find an appropriate hook.

    Can you point me in the right direction?

    Thanks!

    Pippin

    Posted 12 years ago on Tuesday January 17, 2012 | Permalink
  2. Hi, Pippin,

    You could use the "gform_pre_submission_filter" to create the notification message. Below is a code example:

    //change notification message
    add_action("gform_pre_submission_filter", "set_notification_message");
    function set_notification_message($form){
    	$form["notification"]["message"] = "Four score and seven years ago.<br>Our fathers brought forth...";
    	return $form;
    }
    Posted 12 years ago on Wednesday February 1, 2012 | Permalink

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