<?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: SOLUTION: Automatic email once post has been approved</title>
		<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved</link>
		<description>Gravity Support Forums Topic: SOLUTION: Automatic email once post has been approved</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:09:32 +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/solution-automatic-email-once-post-has-been-approved" rel="self" type="application/rss+xml" />

		<item>
			<title>finalwebsites on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-35191</link>
			<pubDate>Tue, 13 Sep 2011 15:52:51 +0000</pubDate>
			<dc:creator>finalwebsites</dc:creator>
			<guid isPermaLink="false">35191@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, great idea to do that this way. I'm using a custom post type for my form submissions and this way I'm able to test the field before I send the email message to that email address from my custom field.&#60;/p&#62;
&#60;p&#62;But there is a problem: I get the email address into my custom field and I used the same key name for the email function, but there is no email send after the post is gets published.&#60;br /&#62;
Any idea what might be wrong?&#60;/p&#62;
&#60;p&#62;EDIT:&#60;br /&#62;
I found the problem, because I'm using a custom post type (named &#34;questions&#34;) I need to change the action:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;add_action(&#38;#39;publish_questions&#38;#39;, &#38;#39;email_members&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Great function even for non GF tasks :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nicole on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-30522</link>
			<pubDate>Wed, 20 Jul 2011 10:39:10 +0000</pubDate>
			<dc:creator>nicole</dc:creator>
			<guid isPermaLink="false">30522@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just tried to use this code but it did not work. Besides replacing YOUR_CUSTOMFIELD_KEY with the name of the custom field that you're using to collect the email address do you have to make any other changes to the code? For example post ID? Does it stay like that or do you put the ID of the post?&#60;/p&#62;
&#60;p&#62;Thanks in advance!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nicole on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-30490</link>
			<pubDate>Wed, 20 Jul 2011 05:33:36 +0000</pubDate>
			<dc:creator>nicole</dc:creator>
			<guid isPermaLink="false">30490@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Has this been integrated into the plugin?&#60;br /&#62;
I would like to do exactly this but since quite a while has passed since this post I am not sure if this function has been integrated or if I should try and follow these instructions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>trig on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-25535</link>
			<pubDate>Sat, 14 May 2011 15:47:04 +0000</pubDate>
			<dc:creator>trig</dc:creator>
			<guid isPermaLink="false">25535@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this possibly going to be included in a future release.  Also, any consideration to it being triggered when a submitted post moves from draft to published?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-23753</link>
			<pubDate>Wed, 20 Apr 2011 12:10:34 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">23753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem. In Rnfsolutions original snippet, he is getting the user's email from a custom field. So what you'll need to do is add a &#34;Custom Field&#34; from the &#34;Post Fields&#34; field menu ( &#60;a href=&#34;http://grab.by/9Vyb&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9Vyb&#60;/a&#62; ) to your form. Then you'll update the &#34;Custom Field Name&#34; attribute of the Custom Field field (haha, hope that makes sense) to whatever you'd like to name your custom field ( &#60;a href=&#34;http://grab.by/9Vyh&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9Vyh&#60;/a&#62; ).&#60;/p&#62;
&#60;p&#62;Now back to Rnfsolutions snippet, you'd replace &#34;YOUR_CUSTOMFIELD_KEY&#34; in the code to the name of your custom field (in my example above, I named the custom field &#34;user_email&#34;).&#60;/p&#62;
&#60;p&#62;Make sense? :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patag on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-23751</link>
			<pubDate>Wed, 20 Apr 2011 12:01:25 +0000</pubDate>
			<dc:creator>Patag</dc:creator>
			<guid isPermaLink="false">23751@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for your reply. I read it about 6 times, but it still did not get any clearer :)&#60;br /&#62;
The form vs post vs custom post field and Post custom field is too confusing.&#60;/p&#62;
&#60;p&#62;Maybe I should have stressed more the 'how' question, as even if I would understand what you mean, I still would not know how to do it?&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-23748</link>
			<pubDate>Wed, 20 Apr 2011 11:50:58 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">23748@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Patag,&#60;/p&#62;
&#60;p&#62;Assuming you are implementing this for posts created from a Gravity Form, you'll wanted to add a Post Custom Field from the Post Fields section on your form. Using the Post Custom Field you can store any user submitted value (or a number of system generated values) as a custom field of the post generated by the Gravity Form submission.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patag on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-23733</link>
			<pubDate>Wed, 20 Apr 2011 01:03:18 +0000</pubDate>
			<dc:creator>Patag</dc:creator>
			<guid isPermaLink="false">23733@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks nice, has this been implemented in the forms?&#60;br /&#62;
If not, could you explain for lesser souls like me how to do the missing step of creating a custom field that will work with this? Where do I make that, in the dbase or..?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rnfsolutions on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-20766</link>
			<pubDate>Thu, 17 Mar 2011 11:52:28 +0000</pubDate>
			<dc:creator>rnfsolutions</dc:creator>
			<guid isPermaLink="false">20766@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hmmm, nice suggestion - certainly I could see instances of when that scenario could happen.&#60;/p&#62;
&#60;p&#62;Also to note, this code assumes that the form has also explicity stated that a submitters email address will be used to contact them - clearly there's no opt-out mechanism, so wouldn't want to fall foul of any legal obligations about reusing personal information.&#60;/p&#62;
&#60;p&#62;Might this code (or a derivative of), be easily included in a future release of GF? With a nice little backend interface to be able to control the messages etc? :-)&#60;/p&#62;
&#60;p&#62;D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "SOLUTION: Automatic email once post has been approved"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/solution-automatic-email-once-post-has-been-approved#post-20759</link>
			<pubDate>Thu, 17 Mar 2011 11:42:19 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">20759@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Very cool Duncan.  If I may make a suggestion, one thing that could also be done is after this executes it could add a new custom field to that post using a key designed so it's hidden and populate this with a value that basically says this code has executed and the email was sent.&#60;/p&#62;
&#60;p&#62;Then if for some reason the post is marked as a Draft again and then republished (for whatever reason) the user isn't necessarily emailed again for what may have just been a quick edit, etc.  This way the email is only sent on initial publish.&#60;/p&#62;
&#60;p&#62;To hide a custom field from appearing in the list of custom fields for that post in the post edit screen you name the key with an underscore in front of it.  For example: _emailstatus&#60;/p&#62;
&#60;p&#62;Although hiding this custom field from appearing is entirely up to you, obviously it may be beneficial to show this custom field in the post editor so you can see that the publish email was sent.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
