<?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: PHP Notification question</title>
		<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question</link>
		<description>Gravity Support Forums Topic: PHP Notification question</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:20:12 +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/php-notification-question" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7244</link>
			<pubDate>Sat, 10 Jul 2010 00:25:36 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7244@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The PHP code snippet you were using just sets the Send To Address.  You can still use the BCC field on the Notifications setup so that you receive a copy of the email.  That is what the BCC is there for.  &#60;/p&#62;
&#60;p&#62;So you use the PHP code snippet you were using to set the Send To address based on your custom field, and then edit the Notification setup for that form and enter your email address in the BCC field.  It should then blind carbon copy you on that email.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webferret on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7242</link>
			<pubDate>Sat, 10 Jul 2010 00:02:19 +0000</pubDate>
			<dc:creator>webferret</dc:creator>
			<guid isPermaLink="false">7242@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I dont think that would work. i run a business directory. And the user posts are entered by me. I have  a custom field where i enter the email of the business. People then go to the site and fill out a form to contact that business. As of now users can contact those businesses thru the form. but i would like to be notified without the business seeing my email when they get a message from a user filling out the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7236</link>
			<pubDate>Fri, 09 Jul 2010 21:05:38 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7236@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We are doing this the complicated way.  Remove that custom code.&#60;/p&#62;
&#60;p&#62;Every form has an Admin Notification and a User Notification.  Edit the Notifications for that form and you can configure one or both of these.&#60;/p&#62;
&#60;p&#62;The User Notification is sent to the user.  The Admin Notification is sent to you.  Both are configurable.  So you setup the Admin Notification to go to your address.&#60;/p&#62;
&#60;p&#62;If for some reason you also want the User Notification to go to you then you can use the BCC field on the User Notification and enter your email address there.  Although the Admin Notification should suffice.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webferret on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7235</link>
			<pubDate>Fri, 09 Jul 2010 20:06:51 +0000</pubDate>
			<dc:creator>webferret</dc:creator>
			<guid isPermaLink="false">7235@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, it worked. although both emails are in the to address when emails are sent. It looks like this&#60;/p&#62;
&#60;p&#62;from	MySite &#38;lt;noreply@mysite.com&#38;gt;&#60;br /&#62;
reply-to	&#60;a href=&#34;mailto:info@fromaddressenteredonform.com&#34;&#62;info@fromaddressenteredonform.com&#60;/a&#62;&#60;br /&#62;
to	&#60;a href=&#34;mailto:person@customwordpressfilter.com&#34;&#62;person@customwordpressfilter.com&#60;/a&#62;,&#60;br /&#62;
&#60;a href=&#34;mailto:me@appendedemail.com&#34;&#62;me@appendedemail.com&#60;/a&#62;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;would like this not to show when sending email to customers&#60;br /&#62;
date	Fri, Jul 9, 2010 at 4:58 PM&#60;br /&#62;
subject	blah blah blah&#60;br /&#62;
mailed-by	gator1561.hostgator.com&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;how to get rid of&#60;/p&#62;
&#60;p&#62;Thanks for all your support. you guys are great
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7233</link>
			<pubDate>Fri, 09 Jul 2010 19:25:49 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7233@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nope, you put your email address in the wrong place.  It doesn't go in the function call declaration, you are supposed to append it to the end of the email_to variable that the function call defines.  It should look something like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$email_to = get_post_meta($post-&#38;gt;ID, &#38;#39;author_email&#38;#39;, true) . &#38;quot;,your@email.com&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Notice I have appended the email to the email_to variables.  Make sure there is a comma before the hardcoded email address with no space in between the comma and the hardcoded email address.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webferret on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7231</link>
			<pubDate>Fri, 09 Jul 2010 19:03:32 +0000</pubDate>
			<dc:creator>webferret</dc:creator>
			<guid isPermaLink="false">7231@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK adding my email to that code messes up my site. give a error and site goes blank. this is what i did. let me know if its right, thanks&#60;/p&#62;
&#60;p&#62;add_filter( 'gform_notification_email_2', 'route_notification', 10, 2 );&#60;br /&#62;
function route_notification($email_to, $entry, &#60;a href=&#34;mailto:myemail@gmail.com&#34;&#62;myemail@gmail.com&#60;/a&#62;) {&#60;br /&#62;
global $post;&#60;br /&#62;
$email_to = get_post_meta($post-&#38;gt;ID, 'author_email', true);&#60;br /&#62;
return $email_to;&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7226</link>
			<pubDate>Fri, 09 Jul 2010 17:08:21 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you are using the filter to do this you would have to hardcode the additional email in this code.  You would send multiple email addresses as the email_to value.  So in your example above you would need to append &#34;,your@email.com&#34; as part of the $email_to value.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webferret on "PHP Notification question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-notification-question#post-7218</link>
			<pubDate>Fri, 09 Jul 2010 15:52:39 +0000</pubDate>
			<dc:creator>webferret</dc:creator>
			<guid isPermaLink="false">7218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have successfully entered the email filter into my functions php file&#60;/p&#62;
&#60;p&#62; add_filter( 'gform_notification_email_2', 'route_notification', 10, 2 );&#60;br /&#62;
function route_notification($email_to, $entry) {&#60;br /&#62;
	global $post;&#60;br /&#62;
	$email_to = get_post_meta($post-&#38;gt;ID, 'author_email', true);&#60;br /&#62;
	return $email_to;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;it emails the custom filter email but i would still like to be also notified of new form entries. how can i send a notification to the custom field AS WELL as myself? thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
