<?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>Linux Servers cPanel webhosting blog &#187; simple phpmail() form</title>
	<atom:link href="http://www.theperfectarts.com/tag/simple-phpmail-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Wed, 08 Feb 2012 05:58:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Send mail by using phpmail function.</title>
		<link>http://www.theperfectarts.com/2009/09/send-mail-by-using-phpmail-function/</link>
		<comments>http://www.theperfectarts.com/2009/09/send-mail-by-using-phpmail-function/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 04:28:58 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[E-mails issue]]></category>
		<category><![CDATA[Enable private PHP]]></category>
		<category><![CDATA[Few good queries and suggestions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[check phpmail() function]]></category>
		<category><![CDATA[enable or disable the phpmail() function]]></category>
		<category><![CDATA[not sure phpmail]]></category>
		<category><![CDATA[php form]]></category>
		<category><![CDATA[phpmail function]]></category>
		<category><![CDATA[PHPMAIL function solution]]></category>
		<category><![CDATA[phpmail() form]]></category>
		<category><![CDATA[phpmail() function issue]]></category>
		<category><![CDATA[phpmail() function problem]]></category>
		<category><![CDATA[phpmail() test script]]></category>
		<category><![CDATA[resolve phpmail() function issue]]></category>
		<category><![CDATA[simple php form]]></category>
		<category><![CDATA[simple phpmail function form]]></category>
		<category><![CDATA[simple phpmail() form]]></category>
		<category><![CDATA[test contact for phpmail() function]]></category>
		<category><![CDATA[what is phpmail]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=246</guid>
		<description><![CDATA[You can create a simple php mail form by using following code.. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#60;? $to      = &#8216;supp0rt@xyz.com&#8217;; $subject = &#8216;The test for mail function&#8217;; $message = &#8216;Hello&#8217;; $headers = &#8216;From: test@abc123.com&#8217; . &#8220;\r\n&#8221; . &#8216;Reply-To: test@testforever123.com&#8217; . &#8220;\r\n&#8221; . &#8216;X-Mailer: PHP/&#8217; . phpversion(); mail($to, $subject, $message, $headers); ?&#62; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; If you are not able to [...]]]></description>
			<content:encoded><![CDATA[<p>You can create a simple php mail form by using following code..</p>
<blockquote><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong><span style="color: #800000;">&lt;?<br />
$to      = &#8216;supp0rt@xyz.com&#8217;;<br />
$subject = &#8216;The test for mail function&#8217;;<br />
$message = &#8216;Hello&#8217;;<br />
$headers = &#8216;From: test@abc123.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;Reply-To: test@testforever123.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;X-Mailer: PHP/&#8217; . phpversion();<br />
mail($to, $subject, $message, $headers);<br />
?&gt;</span></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p></blockquote>
<p>If you are not able to receive the E-mail then you need to check whether your server is allowing to send an E-mail by using phpmail() or not?&#8217; if you are having root login then check the servers main php.ini file.</p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<blockquote><p><strong><span style="color: #800000;">root@Gunjan []# php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini</span></strong></p>
<p><strong><span style="color: #800000;">root@Gunjan []# cat /usr/local/lib/php.ini | grep disable_function<br />
disable_functions=&#8221;system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,highlight_file,phpmail&#8221;</span></strong></p></blockquote>
<p>and remove the phpmail() from server mail php.ini file and restart the Apache web server.</p>
<p>Or</p>
<p>If you are not having root login details then contact your hosting provider and ask them to enable the phpmail() for your hosting account.</p>
<p>You can also send me an E-mail at nsk.gunjan@gmail.com if you have any queries&#8230;</p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/09/send-mail-by-using-phpmail-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

