<?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: gform_pre_send_email not working</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working</link>
		<description>Gravity Support Forums Topic: gform_pre_send_email not working</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:03:18 +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/gform_pre_send_email-not-working" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "gform_pre_send_email not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working#post-202658</link>
			<pubDate>Tue, 09 Apr 2013 12:27:13 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">202658@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The developers tested what you have and it worked fine for them. I would like to send you our logging add-on to see if it can pinpoint the source of the issue. If that's okay, can you send me an e-mail at &#60;a href=&#34;mailto:peralty@rocketgenius.com&#34;&#62;peralty@rocketgenius.com&#60;/a&#62; please?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform_pre_send_email not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working#post-197710</link>
			<pubDate>Fri, 05 Apr 2013 11:45:53 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">197710@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm going to check with the developers to see what's going on with this. Please be patient.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Douglas Karr on "gform_pre_send_email not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working#post-197594</link>
			<pubDate>Fri, 05 Apr 2013 08:58:12 +0000</pubDate>
			<dc:creator>Douglas Karr</dc:creator>
			<guid isPermaLink="false">197594@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm using 1.7 Beta 2 and this is not working for me. Even something simple, like the example below, does not work.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_send_email&#38;quot;, &#38;quot;route_email&#38;quot;);
function route_email($email){
	$email[&#38;#39;to&#38;#39;] = &#38;#39;name@domain.com&#38;#39;;
	return $email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I don't know whether to use gform_pre_notification_save or gform_notification. Can you guys help me understand the proper way to do this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform_pre_send_email not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working#post-196003</link>
			<pubDate>Wed, 03 Apr 2013 22:13:12 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">196003@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This filter is only available for 1.7+. Are you using our 1.7 Beta 2?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>6x6Design on "gform_pre_send_email not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_send_email-not-working#post-195690</link>
			<pubDate>Wed, 03 Apr 2013 15:54:35 +0000</pubDate>
			<dc:creator>6x6Design</dc:creator>
			<guid isPermaLink="false">195690@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi - I am trying to use this filter to add some functionality but I'm not getting any response from it. It's in the functions.php file here is the code. Basically i am distributing the messages to different recipients and then keeping a record who got what. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_send_email&#38;quot;, &#38;quot;rah_leads_gravity&#38;quot;);
function rah_leads_gravity($email){

	// Interaction with message data
	$thisEmailAddress = get_option(&#38;#39;nextLead&#38;#39;);
	$email[&#38;quot;to&#38;quot;] = $thisEmailAddress;
	$senderEmail = $email[&#38;quot;from&#38;quot;];
	$senderSubject = $email[&#38;quot;subject&#38;quot;];
	$timeSent = time(); 

	// Queue next email address
	rah_leads_update_queue($thisEmailAddress);

	//Update message list
	global $wpdb;
	$wpdb-&#38;gt;insert(&#38;#39;wp_rah_leads_messages&#38;#39;, array(
			toEmail =&#38;gt; $thisEmailAddress,
			fromEmail =&#38;gt; $senderEmail,
			emailTitle =&#38;gt; $senderSubject,
			emailDate =&#38;gt; $timeSent
			));

	return $email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_before_email&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_before_email&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
