<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: PHP Sendmail and XAMPP on Windows</title>
	<atom:link href="http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/</link>
	<description>Brett&#039;s home on the web</description>
	<lastBuildDate>Sat, 06 Mar 2010 03:51:54 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Judd Rogers Watts</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-3/#comment-2550</link>
		<dc:creator>Judd Rogers Watts</dc:creator>
		<pubDate>Wed, 03 Mar 2010 02:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2550</guid>
		<description>Hi:
I have XAMPP running on my IBM Netvista (P4); it works well and I am very pleased with it. I have a PERL program that uses SENDMAIL which works on my Network Solutions hosting service. I&#039;m importing it to XAMPP. 

The program opens SENDMAIL with the following code:

    my $sendmail = &quot;/usr/sbin/sendmail -t&quot;;
    open(SENDMAIL, &quot;&#124;$sendmail&quot;) or die &quot;Cannot open $sendmail: $!&quot;;

and prints the email document with lines like:
 
    print SENDMAIL $from;
    print SENDMAIL $send_to; #etc.

I believe I need to modify the PERL open statement. I have tried:

    $sendmail = &quot;C:\xampp\sendmail\sendmail&quot;; 
    open(SENDMAIL, &quot;&#124;$sendmail&quot;) or die &quot;Cannot open $sendmail: $!&quot;;
    
but had no luck. Also, I think I need an .ini file. I tried the following file:

    C:\xampp\sendmail\sendmail.ini

with this as the file contents:

    c:\xampp\sendmail\sendmail
    smtp_server=smtp.bankmanasseh.com
    smtp_port=30
    default_domain=bankmanasseh.com
    error_logfile=error.log
    auth_username=manasseh@bankmanasseh.com
    auth_password=qA10aPg25r

(bankmanasseh.com is my Network Solutions hosetd URL.) It still doesn&#039;t work. I got no errors, no error log, and no email was sent. Can you help me?

Signed: Judd Rogers Watts
            Owner of Manasseh</description>
		<content:encoded><![CDATA[<p>Hi:<br />
I have XAMPP running on my IBM Netvista (P4); it works well and I am very pleased with it. I have a PERL program that uses SENDMAIL which works on my Network Solutions hosting service. I&#8217;m importing it to XAMPP. </p>
<p>The program opens SENDMAIL with the following code:</p>
<p>    my $sendmail = &#8220;/usr/sbin/sendmail -t&#8221;;<br />
    open(SENDMAIL, &#8220;|$sendmail&#8221;) or die &#8220;Cannot open $sendmail: $!&#8221;;</p>
<p>and prints the email document with lines like:</p>
<p>    print SENDMAIL $from;<br />
    print SENDMAIL $send_to; #etc.</p>
<p>I believe I need to modify the PERL open statement. I have tried:</p>
<p>    $sendmail = &#8220;C:\xampp\sendmail\sendmail&#8221;;<br />
    open(SENDMAIL, &#8220;|$sendmail&#8221;) or die &#8220;Cannot open $sendmail: $!&#8221;;</p>
<p>but had no luck. Also, I think I need an .ini file. I tried the following file:</p>
<p>    C:\xampp\sendmail\sendmail.ini</p>
<p>with this as the file contents:</p>
<p>    c:\xampp\sendmail\sendmail<br />
    smtp_server=smtp.bankmanasseh.com<br />
    smtp_port=30<br />
    default_domain=bankmanasseh.com<br />
    error_logfile=error.log<br />
    auth_username=manasseh@bankmanasseh.com<br />
    auth_password=qA10aPg25r</p>
<p>(bankmanasseh.com is my Network Solutions hosetd URL.) It still doesn&#8217;t work. I got no errors, no error log, and no email was sent. Can you help me?</p>
<p>Signed: Judd Rogers Watts<br />
            Owner of Manasseh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-3/#comment-2481</link>
		<dc:creator>J</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2481</guid>
		<description>I&#039;m getting the following error when I try to launch a php file that performs an email:

Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\contact_parse.php on line 35
return_msg=Thanks , your message has been sent.

No email has been received btw.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error when I try to launch a php file that performs an email:</p>
<p>Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\contact_parse.php on line 35<br />
return_msg=Thanks , your message has been sent.</p>
<p>No email has been received btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Take</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2466</link>
		<dc:creator>Take</dc:creator>
		<pubDate>Wed, 24 Feb 2010 17:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2466</guid>
		<description>I get error like this: 

Warning: mail() [function.mail]: SMTP server response: 571 info@ubzrs.org prohibited. We do not relay in C:\xampp\htdocs\rapid\mail.php on line 6 , anyone know what this mean?</description>
		<content:encoded><![CDATA[<p>I get error like this: </p>
<p>Warning: mail() [function.mail]: SMTP server response: 571 <a href="mailto:info@ubzrs.org">info@ubzrs.org</a> prohibited. We do not relay in C:\xampp\htdocs\rapid\mail.php on line 6 , anyone know what this mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brett</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2393</link>
		<dc:creator>brett</dc:creator>
		<pubDate>Thu, 18 Feb 2010 02:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2393</guid>
		<description>So the email is sent, but you are unhappy with the speed / duration taken to send the email? It probably has to do with either your web server and/or your SMTP server.</description>
		<content:encoded><![CDATA[<p>So the email is sent, but you are unhappy with the speed / duration taken to send the email? It probably has to do with either your web server and/or your SMTP server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JustMe</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2366</link>
		<dc:creator>JustMe</dc:creator>
		<pubDate>Sun, 14 Feb 2010 01:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2366</guid>
		<description>Hello!

I have a problem:
- i get the sended email but i have a 5-8 seconds delay before the email is send...on localhost(the localhost webpage is hold for 5-8 seconds)!

i use xampp 1.7.3 on windows xp sp3

Could somebody help me?
Thank you</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I have a problem:<br />
- i get the sended email but i have a 5-8 seconds delay before the email is send&#8230;on localhost(the localhost webpage is hold for 5-8 seconds)!</p>
<p>i use xampp 1.7.3 on windows xp sp3</p>
<p>Could somebody help me?<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ting</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2353</link>
		<dc:creator>Ting</dc:creator>
		<pubDate>Thu, 11 Feb 2010 19:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2353</guid>
		<description>Thank you for your any comments. I did what you said and still did not receive my confirmation email.  I am using XAMPP version 1.7.2. My sendmail.ini is like follow, I did what you told us at PHP.ini and restart Apache :
; configuration for fake sendmail
    [sendmail]
    smtp_server=smtp.telus.net
    smtp_port=465
    ; SMTPS (SSL) support
    ;   auto = use SSL for port 465, otherwise try to use TLS
    ;   ssl  = alway use SSL
    ;   tls  = always use TLS
    ;   none = never try to use SSL
    smtp_ssl=auto
    default_domain=brettshaffer.com
    error_logfile=error.log
    ; if your smtp server requires authentication, modify the following two lines
    auth_username=xxxx@telus.net
    auth_password=xxxx</description>
		<content:encoded><![CDATA[<p>Thank you for your any comments. I did what you said and still did not receive my confirmation email.  I am using XAMPP version 1.7.2. My sendmail.ini is like follow, I did what you told us at PHP.ini and restart Apache :<br />
; configuration for fake sendmail<br />
    [sendmail]<br />
    smtp_server=smtp.telus.net<br />
    smtp_port=465<br />
    ; SMTPS (SSL) support<br />
    ;   auto = use SSL for port 465, otherwise try to use TLS<br />
    ;   ssl  = alway use SSL<br />
    ;   tls  = always use TLS<br />
    ;   none = never try to use SSL<br />
    smtp_ssl=auto<br />
    default_domain=brettshaffer.com<br />
    error_logfile=error.log<br />
    ; if your smtp server requires authentication, modify the following two lines<br />
    auth_username=xxxx@telus.net<br />
    auth_password=xxxx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brett</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2309</link>
		<dc:creator>brett</dc:creator>
		<pubDate>Wed, 03 Feb 2010 12:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2309</guid>
		<description>Thanks! I&#039;m sure visitors will find this information useful.</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;m sure visitors will find this information useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexg</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2308</link>
		<dc:creator>alexg</dc:creator>
		<pubDate>Wed, 03 Feb 2010 10:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2308</guid>
		<description>I am running XAMPP on vista and followed your instructions carefully. My example ini file under sendmail/xampp/xampp didn&#039;t look like a proper ini file but more like what salang has posted here. I used a modified copy of your ini file and sendmail was complaining about the syntax of the ini file at line 1. After some time and a lot of frustration I replaced my sendmail.exe with a fresh download from their website at http://glob.com.au/sendmail/ and now it works like a charm. Seems some versions of XAMPP are bundled with a sendmail that expects the ini file in some other weird format. Hope someone finds this useful.</description>
		<content:encoded><![CDATA[<p>I am running XAMPP on vista and followed your instructions carefully. My example ini file under sendmail/xampp/xampp didn&#8217;t look like a proper ini file but more like what salang has posted here. I used a modified copy of your ini file and sendmail was complaining about the syntax of the ini file at line 1. After some time and a lot of frustration I replaced my sendmail.exe with a fresh download from their website at <a href="http://glob.com.au/sendmail/" rel="nofollow">http://glob.com.au/sendmail/</a> and now it works like a charm. Seems some versions of XAMPP are bundled with a sendmail that expects the ini file in some other weird format. Hope someone finds this useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brett</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2249</link>
		<dc:creator>brett</dc:creator>
		<pubDate>Thu, 21 Jan 2010 03:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2249</guid>
		<description>I&#039;m not sure what your problem is. Try printing your variables on the screen as debug at various points to ensure they are what you think they should be.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what your problem is. Try printing your variables on the screen as debug at various points to ensure they are what you think they should be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viduph</title>
		<link>http://brettshaffer.com/blog/how-to/php-sendmail-and-xampp-on-windows/comment-page-2/#comment-2246</link>
		<dc:creator>viduph</dc:creator>
		<pubDate>Wed, 20 Jan 2010 09:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://brettshaffer.com/?p=109#comment-2246</guid>
		<description>Could you please help me? Here are the steps I followed:
1. Modify php\php.ini (My XAMPP version is 1.7.1 and I cannot find apache\bin\php.ini)
2. Modify sendmail\sendmail.ini
3. Download sendmail_ssl.zip file (this step is done after I did not get success without it)
4. Restart Apache
5. Run send mail script

But all I get is no response, no error log file is created.
Here is the script to send email:

$from_name = &quot;my name&quot;;
$from_email = &quot;myemail@gmail.com&quot;;
$headers = &quot;From: $from_name &quot;;
$body = &quot;Hi, \nThis is a test mail from $from_name .&quot;;
$subject = &quot;Test mail from $from_name&quot;;
$to = &quot;myotheremail@gmail.com&quot;;
if (mail($to, $subject, $body, $headers)) {
    echo &quot;success!&quot;;
} else {
    echo &quot;fail…&quot;;
}
It prints &quot;success!&quot; on the screen but I don&#039;t get any email in my gmail mail box.
I then use process monitor to see if sendmail.exe works (http://glob.com.au/sendmail/help/), it says success.
I don&#039;t know what happens here.</description>
		<content:encoded><![CDATA[<p>Could you please help me? Here are the steps I followed:<br />
1. Modify php\php.ini (My XAMPP version is 1.7.1 and I cannot find apache\bin\php.ini)<br />
2. Modify sendmail\sendmail.ini<br />
3. Download sendmail_ssl.zip file (this step is done after I did not get success without it)<br />
4. Restart Apache<br />
5. Run send mail script</p>
<p>But all I get is no response, no error log file is created.<br />
Here is the script to send email:</p>
<p>$from_name = &#8220;my name&#8221;;<br />
$from_email = &#8220;myemail@gmail.com&#8221;;<br />
$headers = &#8220;From: $from_name &#8220;;<br />
$body = &#8220;Hi, \nThis is a test mail from $from_name .&#8221;;<br />
$subject = &#8220;Test mail from $from_name&#8221;;<br />
$to = &#8220;myotheremail@gmail.com&#8221;;<br />
if (mail($to, $subject, $body, $headers)) {<br />
    echo &#8220;success!&#8221;;<br />
} else {<br />
    echo &#8220;fail…&#8221;;<br />
}<br />
It prints &#8220;success!&#8221; on the screen but I don&#8217;t get any email in my gmail mail box.<br />
I then use process monitor to see if sendmail.exe works (<a href="http://glob.com.au/sendmail/help/" rel="nofollow">http://glob.com.au/sendmail/help/</a>), it says success.<br />
I don&#8217;t know what happens here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
