<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Email/Message Filters</title>
		<link>https://legacy.forums.gravityhelp.com/topic/emailmessage-filters</link>
		<description>Gravity Support Forums Topic: Email/Message Filters</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 23:47:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/emailmessage-filters" rel="self" type="application/rss+xml" />

		<item>
			<title>Travis on "Email/Message Filters"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/emailmessage-filters#post-62003</link>
			<pubDate>Sat, 09 Jun 2012 16:13:28 +0000</pubDate>
			<dc:creator>Travis</dc:creator>
			<guid isPermaLink="false">62003@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Currently, GFCommon::send_email() is a private method and probably rightly so. However, there is no real way to modify the message contents without re-writing this method. Just something to re-considered because I am betting this was made private on purpose to prevent plugins, etc., from using this method.&#60;/p&#62;
&#60;p&#62;However, I believe it would be advantageous to add a filter to the message though I am not sure which would be better, pre-replace_variables() or post. However, I do think that message could benefit from its own method. Something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;public static function build_message( $form, $lead ){

	$message_format = apply_filters(&#38;quot;gform_notification_format_{$form[&#38;quot;id&#38;quot;]}&#38;quot;, apply_filters(&#38;quot;gform_notification_format&#38;quot;, &#38;quot;html&#38;quot;, &#38;quot;admin&#38;quot;, $form, $lead), &#38;quot;admin&#38;quot;, $form, $lead);
	$message = GFCommon::replace_variables(rgget(&#38;quot;message&#38;quot;, $form[&#38;quot;notification&#38;quot;]), $form, $lead, false, false, !rgget(&#38;quot;disableAutoformat&#38;quot;, $form[&#38;quot;notification&#38;quot;]), $message_format);
	$message = do_shortcode($message);

	return apply_filters(&#38;quot;gform_message_{$form[&#38;quot;id&#38;quot;]}&#38;quot;, apply_filters(&#38;quot;gform_message&#38;quot;, &#38;quot;html&#38;quot;, &#38;quot;admin&#38;quot;, $message), &#38;quot;admin&#38;quot;, $message);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This could replace 2 chunks in send_user_notification() &#38;amp; send_admin_notification() methods. This would also allow someone to hit gform_entry_created and make the necessary changes to the message based on the submission.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
