<?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: dynamically change FROM email for user notification</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification</link>
		<description>Gravity Support Forums Topic: dynamically change FROM email for user notification</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:44:13 +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/dynamically-change-from-email-for-user-notification" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-88599</link>
			<pubDate>Wed, 07 Nov 2012 23:12:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">88599@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-88512</link>
			<pubDate>Wed, 07 Nov 2012 18:00:06 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">88512@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for this solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83702</link>
			<pubDate>Thu, 25 Oct 2012 12:41:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">83702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would use the gform_pre_submission_filter as I mentioned &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamically-change-from-email-for-user-notification#post-83476&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62;.    Your code will look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_pre_submission_filter&#38;#39;, &#38;#39;admin_email_from&#38;#39;);
function admin_email_from ($form) {
    $form[&#38;#39;autoResponder&#38;#39;][&#38;#39;from&#38;#39;] = $form[&#38;#39;notification&#38;#39;][&#38;#39;from&#38;#39;];
    // return the modified form object
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Using the filter that way will apply to all forms on your site.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scott Hack on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83698</link>
			<pubDate>Thu, 25 Oct 2012 12:23:13 +0000</pubDate>
			<dc:creator>Scott Hack</dc:creator>
			<guid isPermaLink="false">83698@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, how would I go about doing this for all forms on a site?   Would I have to tie this into one of the hooks?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83509</link>
			<pubDate>Wed, 24 Oct 2012 23:39:46 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">83509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So you would like to make the From address for the User notification identical to the From address for the Admin notification?  Is that accurate?  You can do it in the same manner, but instead of &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$form[&#38;#39;notification&#38;#39;][&#38;#39;from&#38;#39;] = rgpost(&#38;#39;input_4&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you would do something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;from&#38;#39;] = $form[&#38;#39;notification&#38;#39;][&#38;#39;from&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Documentation for the autoResponder (user notification):&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/AutoResponder&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/AutoResponder&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scott Hack on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83505</link>
			<pubDate>Wed, 24 Oct 2012 23:35:39 +0000</pubDate>
			<dc:creator>Scott Hack</dc:creator>
			<guid isPermaLink="false">83505@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't think so.  I'd like to have the user notification email to be able to be changed.  Not the from email for the admin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83476</link>
			<pubDate>Wed, 24 Oct 2012 22:35:08 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">83476@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think it is possible to change the &#34;From&#34; address.  See the documentation on the notification here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Notification&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Notification&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You could use the gform_pre_submission_filter: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In the example on that page, you can change the &#34;From&#34; email address by changing line 14 to this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
// this presumes that input field 4 holds the email
// address you want to use as the FROM
// address for the admin notification
$form[&#38;#39;notification&#38;#39;][&#38;#39;from&#38;#39;] = rgpost(&#38;#39;input_4&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$form[&#38;#39;notification&#38;#39;][&#38;#39;from&#38;#39;] = &#38;#39;scott@sellinggreaterlouisville.com&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Does that accomplish what you're looking for?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scott Hack on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-83427</link>
			<pubDate>Wed, 24 Oct 2012 19:42:23 +0000</pubDate>
			<dc:creator>Scott Hack</dc:creator>
			<guid isPermaLink="false">83427@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Dangit!  I was really hoping I was going to find an answer to this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-61369</link>
			<pubDate>Mon, 04 Jun 2012 14:37:26 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">61369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There isn't currently a way to change the from address to match the TO address in either type of notification we provide.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "dynamically change FROM email for user notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-change-from-email-for-user-notification#post-61367</link>
			<pubDate>Mon, 04 Jun 2012 14:16:17 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">61367@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was wondering if there is a way to dynamically change the FROM email address for a user notification for a form. I would like to have the from address match the TO email address for the admin notification, which I have set up using the routing feature for the admin notification. In the documentation I only see filters for changing TO email addresses.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
