<?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: Contact form - populated email</title>
		<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email</link>
		<description>Gravity Support Forums Topic: Contact form - populated email</description>
		<language>en-US</language>
		<pubDate>Wed, 15 Apr 2026 03:15: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/contact-form-populated-email" rel="self" type="application/rss+xml" />

		<item>
			<title>go4 on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-4794</link>
			<pubDate>Tue, 20 Apr 2010 02:51:34 +0000</pubDate>
			<dc:creator>go4</dc:creator>
			<guid isPermaLink="false">4794@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is great. To clarify for anyone wanting to use this: the value of the custom field you pass will override whatever is set in the admin area under the notifications &#38;gt; send to email field for the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2821</link>
			<pubDate>Tue, 19 Jan 2010 13:39:09 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">2821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Jan, I wanted to let you know that I've partially implemented this, but got pulled away and haven't had a chance to go back and finish. I'll let you know how it goes as soon as I get it done. I just wanted to say thanks, because it LOOKS like it's going to work fine.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Egbert on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2717</link>
			<pubDate>Thu, 14 Jan 2010 04:59:20 +0000</pubDate>
			<dc:creator>Jan Egbert</dc:creator>
			<guid isPermaLink="false">2717@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This should work if you change the 2 in gform_notification_email_2 to the id of the form you added to your template. You can find the ID in your WordPress backend in the form list. Also if the meta key for the custom field containing the emailaddress is different, you would have to change that. In this example I used the meta key of email_value.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_notification_email_2&#38;#39;, &#38;#39;route_notification&#38;#39;, 10, 2 );

function route_notification($email_to, $entry){
	global $post;
	$email_to = get_post_meta($post-&#38;gt;ID, &#38;quot;email_value&#38;quot;, true);
	return $email_to;

}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2708</link>
			<pubDate>Wed, 13 Jan 2010 21:27:37 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">2708@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Shelley, hit me up via the Contact Us form with details on what you want to do and we can see what the time/effort would be to accomplish what you want to do.  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2701</link>
			<pubDate>Wed, 13 Jan 2010 16:14:25 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">2701@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I guess I'm going to have to seek help to get this going. I don't have the in-house technical expertise to give it a go. Do you have any suggestions on who to contract for this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MetVisualMedia on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2665</link>
			<pubDate>Tue, 12 Jan 2010 19:15:30 +0000</pubDate>
			<dc:creator>MetVisualMedia</dc:creator>
			<guid isPermaLink="false">2665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl,&#60;/p&#62;
&#60;p&#62;One last question. outside of continuing to troubleshoot email problems on my server, I'm not sure the author email is populating the field. It may be because I'm not specifying the proper parameter via the advanced settings in the form for that field. Using Jan's first code snippet, which parameter should I be using?&#60;/p&#62;
&#60;p&#62;Thanks again for all the help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2662</link>
			<pubDate>Tue, 12 Jan 2010 18:49:14 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">2662@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;PHP should go in your themes functions.php file, if the code is placed properly in your function.php file, it should work.  You may need to double check the code to make sure the syntax is correct and that it appears within a php code block.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MetVisualMedia on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2661</link>
			<pubDate>Tue, 12 Jan 2010 18:29:52 +0000</pubDate>
			<dc:creator>MetVisualMedia</dc:creator>
			<guid isPermaLink="false">2661@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl,&#60;/p&#62;
&#60;p&#62;In respect to that very thread in which Jan replied, I need a little guidance on where I should be placing the filters. I've tried putting them in the theme functions but no dice.&#60;/p&#62;
&#60;p&#62;Suggestions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2649</link>
			<pubDate>Tue, 12 Jan 2010 14:22:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">2649@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Shelley,&#60;/p&#62;
&#60;p&#62;What you can do is create a custom page template that only displays the contact form if the email_value field has a value.  You would need to display the form using the function call.  So if email_value exists then display the form.&#60;/p&#62;
&#60;p&#62;You can override the notification email TO field using a hook.  You can read how another user (Jan Egbert) has accomplished this here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/sending-form-to-author-of-post&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/sending-form-to-author-of-post&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In his example he is routing the notification to the author of the post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Contact form - populated email"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/contact-form-populated-email#post-2644</link>
			<pubDate>Tue, 12 Jan 2010 12:34:54 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">2644@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, it just occurred to me that some of our employees don't have email. I'd very much like for the form to not show up in those cases.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
