<?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: hook for mail notification text</title>
		<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text</link>
		<description>Gravity Support Forums Topic: hook for mail notification text</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 09:29:50 +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/hook-for-mail-notification-text" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-81397</link>
			<pubDate>Tue, 16 Oct 2012 08:52:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81397@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are welcome.  Glad that is working like you want.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-81395</link>
			<pubDate>Tue, 16 Oct 2012 08:50:38 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">81395@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Good!&#60;br /&#62;
It all works!&#60;br /&#62;
i only wanted that the secretary have an admin notification,  like the text i add to  the user notification.&#60;/p&#62;
&#60;p&#62;Thanks for everything!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-81380</link>
			<pubDate>Tue, 16 Oct 2012 08:01:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81380@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
the message&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;What message? You want to add some text to both the user notification and admin notification, but you would still like the notifications to be different?  If you wanted, you could BCC the secretary on the user notification, but that is only if you want the secretary to have a copy of the user notification.  If you want the secretary to have an admin notification, but you want to add text there, like you did with the user notification, just change:&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;$form['autoResponder']['message']&#60;/strong&#62;&#60;br /&#62;
to&#60;br /&#62;
&#60;strong&#62;$form['notification']['message']&#60;/strong&#62;.  &#60;/p&#62;
&#60;p&#62;The admin notification is referred to as &#34;notification&#34; and the user notification is referred to as &#34;autoResponder&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-81346</link>
			<pubDate>Tue, 16 Oct 2012 04:17:42 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">81346@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It works.&#60;/p&#62;
&#60;p&#62;Is there a way to add the message even in the admin notification?&#60;br /&#62;
Because the same notification must be read by the user and by the admin(administrative secretaries)&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-80630</link>
			<pubDate>Fri, 12 Oct 2012 15:31:46 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">80630@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no global notification message.  However, if you would like to add your text to the notification which is in the form builder, try this (append to the autoResponder rather than replace it completely:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
function pre_submission($form) {
    $message = $form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;];
    $form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;quot;&#38;lt;strong&#38;gt;test test test&#38;lt;/strong&#38;gt;\n\n&#38;quot; . $message;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will add your custom text before the notification you set up in the form builder.  If you want the notification from the form builder first, and your text after, do this instead:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
function pre_submission($form) {
    $form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] .= &#38;quot;\n\n&#38;lt;strong&#38;gt;test test test&#38;lt;/strong&#38;gt;&#38;quot;;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think you have it now :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-80496</link>
			<pubDate>Fri, 12 Oct 2012 06:01:13 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">80496@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We are getting closer ..&#60;br /&#62;
Now it works but is completely replaced all of the text of the user notification message..&#60;/p&#62;
&#60;p&#62;Is there any global variable that contains the standard message set with the tool of gravityforms?&#60;br /&#62;
If I can use it, i concatenate this global varible to the new message..&#60;/p&#62;
&#60;p&#62;example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_pre_submission_filter_7&#38;quot;, &#38;quot;pre_submission&#38;quot;);

function pre_submission($form){
	global $notification; // i suppose the name :)
    $form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;quot;&#38;lt;strong&#38;gt;test test test&#38;lt;/strong&#38;gt;

&#38;quot;.$notification;

    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-80274</link>
			<pubDate>Thu, 11 Oct 2012 07:01:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">80274@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Instead of gform_pre_submission try &#60;strong&#62;gform_pre_submission_filter&#60;/strong&#62;.  I may have given you bad advice the first time around.  Please let us know if this works.  I'll go back and edit my original reply if this works for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-80242</link>
			<pubDate>Thu, 11 Oct 2012 04:13:08 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">80242@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Only for testing if i can modify the notification,&#60;br /&#62;
I tested the code you suggested me, without conditional clauses.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;quot;gform_pre_submission_7&#38;quot;, &#38;quot;pre_submission&#38;quot;);

function pre_submission($form){
	$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;quot;&#38;lt;strong&#38;gt;test test test&#38;lt;/strong&#38;gt;&#38;quot;;
    return $form;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;On the user notify i don't read the &#34;test test test&#34; message...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-80103</link>
			<pubDate>Wed, 10 Oct 2012 12:07:17 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">80103@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Marco, please show us the code you are using to change the user notification.  If the code is lengthy, please use pastebin.com or pastie.org.   Please share the URL to the page with the form as well.&#60;/p&#62;
&#60;p&#62;The $form['autoResponder']['message'] will change only the user notification, not the admin notification.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "hook for mail notification text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-for-mail-notification-text#post-79981</link>
			<pubDate>Wed, 10 Oct 2012 05:15:17 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">79981@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
i try to use this hook and change the notification message with&#60;br /&#62;
&#34;$form['autoResponder']['message']&#34;&#60;br /&#62;
But i don't see any modify..&#60;br /&#62;
In the email that arrives to the user and the admin i find only the text that i write in the notification settings of gravityforms..&#60;/p&#62;
&#60;p&#62;I put the code in the function.php as usual.&#60;/p&#62;
&#60;p&#62;Any idas?&#60;/p&#62;
&#60;p&#62;Regards &#60;/p&#62;
&#60;p&#62;Marco
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
