<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AwardSpace Blog &#187; PHP mail function</title>
	<atom:link href="http://blog.awardspace.com/tag/php-mail-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.awardspace.com</link>
	<description>Web Hosting News, Web Hosting Tips, Web Hosting Tutorials and FAQ by AwardSpace.com</description>
	<lastBuildDate>Tue, 10 Nov 2009 11:56:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I am unable to use PHP mail() function from my paid hosting account, why?</title>
		<link>http://blog.awardspace.com/i-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why/</link>
		<comments>http://blog.awardspace.com/i-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 11:49:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Management]]></category>
		<category><![CDATA[PHP mail function]]></category>
		<category><![CDATA[send mail example]]></category>

		<guid isPermaLink="false">http://blog.awardspace.com/?p=173</guid>
		<description><![CDATA[Answer: Here is a script example you can test php mail function with:
&#60;?
$from = &#8220;From: You &#60;you@yourdomain.com&#62;&#8221;;
$to = &#8220;you@yourdomain.com&#8221;;
$subject = &#8220;Hi! &#8220;;
$body = &#8220;TEST&#8221;;
if(mail($to,$subject,$body,$from))
echo &#8220;MAIL &#8211; OK&#8221;;
else
echo &#8220;MAIL FAILED&#8221;;
?&#62;
This script is sending email (to you@yourdomain.com) and printing &#8220;MAIL &#8211; OK&#8221; on the page.
Please note that the &#8216;from&#8217; header should be an existing email account inside [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.awardspace.com%2Fi-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.awardspace.com%2Fi-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why%2F" height="61" width="51" /></a></div><p><strong>Answer:</strong> <span class="faq_answers">Here is a script example you can test php mail function with:</span></p>
<p>&lt;?<br />
$from = &#8220;From: You &lt;you@yourdomain.com&gt;&#8221;;<br />
$to = &#8220;you@yourdomain.com&#8221;;<br />
$subject = &#8220;Hi! &#8220;;<br />
$body = &#8220;TEST&#8221;;</p>
<p>if(mail($to,$subject,$body,$from))<br />
echo &#8220;MAIL &#8211; OK&#8221;;<br />
else<br />
echo &#8220;MAIL FAILED&#8221;;<br />
?&gt;</p>
<p>This script is sending email (to you@yourdomain.com) and printing &#8220;MAIL &#8211; OK&#8221; on the page.</p>
<p>Please note that the &#8216;from&#8217; header should be an existing email account inside your Email Manager of your hosting Control Panel.</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_3793" title="I am unable to use PHP mail() function from my paid hosting account, why?" url="http://blog.awardspace.com/i-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why/"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.awardspace.com/i-am-unable-to-use-php-mail-function-from-my-paid-hosting-account-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
