<?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: phpmailer and IIS SMTP Doesn&#8217;t Work</title>
	<atom:link href="http://www.rowlandoconnor.com/2007/09/25/phpmailer-and-iis-smtp-doesnt-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rowlandoconnor.com/2007/09/25/phpmailer-and-iis-smtp-doesnt-work/</link>
	<description>my thoughts on anything</description>
	<lastBuildDate>Wed, 18 Aug 2010 03:16:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Squiddux</title>
		<link>http://www.rowlandoconnor.com/2007/09/25/phpmailer-and-iis-smtp-doesnt-work/comment-page-1/#comment-95</link>
		<dc:creator>Squiddux</dc:creator>
		<pubDate>Fri, 11 Dec 2009 16:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.rowlandoconnor.com/2007/09/25/phpmailer-and-iis-smtp-doesnt-work/#comment-95</guid>
		<description>I was able to get this to work using php 5.x, MS Server 2003, SMTP Server on IIS6, and PHPMailer.

Followed these intructions for SMTP Server: http://www.ruhanirabin.com/php-sendmail-setup-with-smtp-iis-and-windows-servers/

And used this php code:
&lt;code&gt;
require_once(&quot;phpmailer/class.phpmailer.php&quot;);	
$mail             = new PHPMailer();			
$body             = &quot;Message here...&quot;;
$mail-&gt;IsSMTP();
$mail-&gt;Host       = &quot;localhost:25&quot;;
$mail-&gt;SetFrom(&#039;sender@domain.com&#039;, &#039;From Name&#039;);
$mail-&gt;Subject    = &quot;The subject&quot;;
$mail-&gt;AltBody    = &quot;No HTML? - optional message&quot;;
$mail-&gt;MsgHTML($body);
$mail-&gt;AddAddress(&#039;recipient@domain.com&#039;, &quot;To Name&quot;);
				
if(!$mail-&gt;Send()) {
	$response = &quot;Mail failed to send.&quot;;	
} else {
	$response = &quot;Mail delivered.&quot;;
}

$mail-&gt;ClearAddresses();

return $response; // echo $response
&lt;/code&gt;


Hope it helps!  Great site, thanks!</description>
		<content:encoded><![CDATA[<p>I was able to get this to work using php 5.x, MS Server 2003, SMTP Server on IIS6, and PHPMailer.</p>
<p>Followed these intructions for SMTP Server: <a href="http://www.ruhanirabin.com/php-sendmail-setup-with-smtp-iis-and-windows-servers/" rel="nofollow">http://www.ruhanirabin.com/php-sendmail-setup-with-smtp-iis-and-windows-servers/</a></p>
<p>And used this php code:<br />
<code><br />
require_once("phpmailer/class.phpmailer.php");<br />
$mail             = new PHPMailer();<br />
$body             = "Message here...";<br />
$mail-&gt;IsSMTP();<br />
$mail-&gt;Host       = "localhost:25";<br />
$mail-&gt;SetFrom('sender@domain.com', 'From Name');<br />
$mail-&gt;Subject    = "The subject";<br />
$mail-&gt;AltBody    = "No HTML? - optional message";<br />
$mail-&gt;MsgHTML($body);<br />
$mail-&gt;AddAddress('recipient@domain.com', "To Name");</p>
<p>if(!$mail-&gt;Send()) {<br />
	$response = "Mail failed to send.";<br />
} else {<br />
	$response = "Mail delivered.";<br />
}</p>
<p>$mail-&gt;ClearAddresses();</p>
<p>return $response; // echo $response<br />
</code></p>
<p>Hope it helps!  Great site, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
