<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<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>WPMU DEV Community &#187; Topic: Using wp_mail() similar to Subscribe by email</title>
		<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email</link>
		<description>WPMU DEV Community &#187; Topic: Using wp_mail() similar to Subscribe by email</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 23:52:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://premium.wpmudev.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://premium.wpmudev.org/forums/rss/topic/using-wp_mail-similar-to-subscribe-by-email" rel="self" type="application/rss+xml" />

		<item>
			<title>Joe on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39993</link>
			<pubDate>Sun, 30 May 2010 13:43:56 +0000</pubDate>
			<dc:creator>Joe</dc:creator>
			<guid isPermaLink="false">39993@http://premium.wpmudev.org/forums/</guid>
			<description><p>@Kirk: I was getting the dementia!<br />
@Aaron: I thought you where referring to something else. I am calling it from inside a function. </p>
<p>Got it. It was matter of making defining a variable. Stupid variables!
</p></description>
		</item>
		<item>
			<title>Aaron on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39945</link>
			<pubDate>Sat, 29 May 2010 20:55:22 +0000</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">39945@http://premium.wpmudev.org/forums/</guid>
			<description><p>Whether it runs or not is entirely based on where you are calling that code. A function? Tied to what hook?
</p></description>
		</item>
		<item>
			<title>Kirk Ward on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39924</link>
			<pubDate>Sat, 29 May 2010 15:23:39 +0000</pubDate>
			<dc:creator>Kirk Ward</dc:creator>
			<guid isPermaLink="false">39924@http://premium.wpmudev.org/forums/</guid>
			<description><p>@Joe - Try using mail() instead of wp_mail()</p>
<p>That solved my problem ... although I must be getting dementia as I can't remember what my problem was, only that I had all sorts of problems because of the filters associated with wp_mail()
</p></description>
		</item>
		<item>
			<title>Joe on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39908</link>
			<pubDate>Sat, 29 May 2010 12:52:16 +0000</pubDate>
			<dc:creator>Joe</dc:creator>
			<guid isPermaLink="false">39908@http://premium.wpmudev.org/forums/</guid>
			<description><p>Thanks Aaron for your feedback.</p>
<p>$title and $content are getting filled up at beginning of the function. I requested a mail log from the host and shows nothing going through so what you mentioned that it is not getting run is probably the reason.</p>
<p>How do I make it run?
</p></description>
		</item>
		<item>
			<title>Aaron on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39851</link>
			<pubDate>Fri, 28 May 2010 22:21:48 +0000</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">39851@http://premium.wpmudev.org/forums/</guid>
			<description><p>Code looks fine, it's probably not getting run though. Also where is the $title and $content variable getting filled?
</p></description>
		</item>
		<item>
			<title>Joe on "Using wp_mail() similar to Subscribe by email"</title>
			<link>http://premium.wpmudev.org/forums/topic/using-wp_mail-similar-to-subscribe-by-email#post-39781</link>
			<pubDate>Fri, 28 May 2010 14:53:15 +0000</pubDate>
			<dc:creator>Joe</dc:creator>
			<guid isPermaLink="false">39781@http://premium.wpmudev.org/forums/</guid>
			<description><p>hello!</p>
<p>I have a question.</p>
<p>I am trying to send a post by email using the following in a plugin.</p>
<pre><code>$admin_email = get_option(&#39;admin_email&#39;);
$from_email = $admin_email;
$blog_name = get_option(&#39;blogname&#39;);
$message_headers = &#34;MIME-Version: 1.0\n&#34; . &#34;From: &#34; . $blog_name .  &#34; &#60;{$from_email}&#62;\n&#34; . &#34;Content-Type: text/plain; charset=\&#34;&#34; . get_option(&#39;blog_charset&#39;) . &#34;\&#34;\n&#34;;
wp_mail($to, $title, $content, $message_headers);</code></pre>
<p>I noticed that you have a similar code in the subscribe-by-email but coding here is not sending the email. Could you tell me if you see anything wrong here? or if the system is already sending an email via wp_mail() with another plugin would it block a second plugin from sending during the same "publish post" action ?</p>
<p>thanks,<br />
Joe
</p></description>
		</item>

	</channel>
</rss>
