<?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: Having form content sent to me and to email from WP custom field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field</link>
		<description>Gravity Support Forums Topic: Having form content sent to me and to email from WP custom field</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 02:38:11 +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/having-form-content-sent-to-me-and-to-email-from-wp-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>cnymike on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5987</link>
			<pubDate>Wed, 02 Jun 2010 11:14:01 +0000</pubDate>
			<dc:creator>cnymike</dc:creator>
			<guid isPermaLink="false">5987@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've just emailed you the info. Thank you for taking a look at this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5986</link>
			<pubDate>Wed, 02 Jun 2010 10:56:03 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">5986@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you can send me your FTP info to alex[at]rocketgenius.com, I will be glad to take a look at this for you and see what is causing the problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cnymike on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5979</link>
			<pubDate>Wed, 02 Jun 2010 08:44:30 +0000</pubDate>
			<dc:creator>cnymike</dc:creator>
			<guid isPermaLink="false">5979@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have not had any success getting this to work. Notification to administrator and notification to user works when the form is submitted, so I know that the my server is able to send out email. However the form is not being sent to the WP Custom Field, &#34;email&#34;. I imagine this is a simple oversight in the snippet that I've overlooked but so far I'm not able to discern what it is. &#60;/p&#62;
&#60;p&#62;A code snippet was in the forum and that is what I'm currently using although I modified it to use my Form ID and custom field name...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//GravityForms to use custom field for email delivery address
add_filter(&#38;quot;gform_notification_email_1&#38;quot;, &#38;quot;route_notification&#38;quot;, 10, 2);
function route_notification($email_to, $entry){
    global $post;
    $company_email = get_post_meta($post-&#38;gt;ID, &#38;quot;email&#38;quot;, true);
    return $email_to . &#38;#39;,&#38;#39; . $company_email;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>cnymike on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5960</link>
			<pubDate>Tue, 01 Jun 2010 16:32:15 +0000</pubDate>
			<dc:creator>cnymike</dc:creator>
			<guid isPermaLink="false">5960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The form is not being received to the WP Custom Field email address. If have admin and user notifications turned on, I get those. But something is preventing the form submission from being received by the custom field address.&#60;/p&#62;
&#60;p&#62;My WP custom field name is &#34;email&#34;, my form ID is &#34;1&#34; and my functions.php code snippet is&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//GravityForms to use custom field for email delivery address
add_filter(&#38;quot;gform_notification_email_1&#38;quot;, &#38;quot;route_notification&#38;quot;, 10, 2);
function route_notification($email_to, $entry){
    global $post;
    $company_email = get_post_meta($post-&#38;gt;ID, &#38;quot;email&#38;quot;, true);
    return $email_to . &#38;#39;,&#38;#39; . $company_email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any Ideas why this isn't working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cnymike on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5953</link>
			<pubDate>Tue, 01 Jun 2010 15:38:48 +0000</pubDate>
			<dc:creator>cnymike</dc:creator>
			<guid isPermaLink="false">5953@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just discovered that the code snippet was placed outside of the closing php tag. That was causing the weird display of code at the top of the dashboard. Moving it inside the closing tag solved that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cnymike on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5952</link>
			<pubDate>Tue, 01 Jun 2010 15:23:25 +0000</pubDate>
			<dc:creator>cnymike</dc:creator>
			<guid isPermaLink="false">5952@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have attempted to utilize a WP custom field to hold the form recipient email address and when I add the suggested code above to the functions.php file I have an immediate problem. &#60;/p&#62;
&#60;p&#62;As soon as I &#34;update  file&#34;, the code appears in the functions.php file in the editor but also appears in the dashboard at the top of the window.When I refresh my page, the code remains on the screen while the rest of the screen is white. NOt sure what is causing this but if I backpage to the editor and remove the code and update file again, then everything reverts to normal. So In other words, it's not working for me.&#60;/p&#62;
&#60;p&#62;I had altered the code to reflect my specific situation...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//GravityForms to use custom field for email delivery address
add_filter(&#38;quot;gform_notification_email_1&#38;quot;, &#38;quot;route_notification&#38;quot;, 10, 2);
function route_notification($email_to, $entry){
    global $post;
    $company_email = get_post_meta($post-&#38;gt;ID, &#38;quot;email&#38;quot;, true);
    return $email_to . &#38;#39;,&#38;#39; . $company_email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Whereby my form ID was &#34;1&#34; and the custom field name was &#34;email&#34;.&#60;/p&#62;
&#60;p&#62;I can't provide a link to the form since this site is live and I can't really &#34;break&#34; my site just so that I can provide a link to the form.&#60;/p&#62;
&#60;p&#62;Wondering what is wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcdarwin on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5388</link>
			<pubDate>Tue, 11 May 2010 09:46:07 +0000</pubDate>
			<dc:creator>mcdarwin</dc:creator>
			<guid isPermaLink="false">5388@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It works! Brilliant and very simple solution - Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5376</link>
			<pubDate>Mon, 10 May 2010 18:29:12 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">5376@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It would go in your themes functions.php file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcdarwin on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5372</link>
			<pubDate>Mon, 10 May 2010 18:16:44 +0000</pubDate>
			<dc:creator>mcdarwin</dc:creator>
			<guid isPermaLink="false">5372@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;In which file should I add this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Having form content sent to me and to email from WP custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/having-form-content-sent-to-me-and-to-email-from-wp-custom-field#post-5278</link>
			<pubDate>Wed, 05 May 2010 17:41:46 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">5278@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try the following, replacing 5 (in gform_notification_email_5) with your form id, and &#34;email_custom_field_key&#34; with your actual custom field key.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_notification_email_5&#38;quot;, &#38;quot;route_notification&#38;quot;, 10, 2);
function route_notification($email_to, $entry){
    global $post;
    $company_email = get_post_meta($post-&#38;gt;ID, &#38;quot;email_custom_field_key&#38;quot;, true);
    return $email_to . &#38;#39;,&#38;#39; . $company_email;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
