<?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: PHP Mail Scripts using SMTP transport, a guide for beginners</title>
	<atom:link href="http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/</link>
	<description>Read about Website Development, Online Marketing and Web Hosting</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:30:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-134747</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Thu, 10 Nov 2011 18:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-134747</guid>
		<description>Hi Phil,

maybe you can test the code on your local system or sandbox? I&#039;m sure there is nothing wrong with the code, but we need to start somewhere before we can locate the problem :)</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>maybe you can test the code on your local system or sandbox? I&#8217;m sure there is nothing wrong with the code, but we need to start somewhere before we can locate the problem <img src='http://cdn.web-development-blog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Scott</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-134734</link>
		<dc:creator>Phil Scott</dc:creator>
		<pubDate>Thu, 10 Nov 2011 18:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-134734</guid>
		<description>That&#039;s what I find so perplexing. I created a minimal form file using the guidance provided and the class.phpmailer.php was unchanged from the download. It must be something simple that I have missed. 
It does find the class file because that&#039;s where the error originates so the path is correct.</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I find so perplexing. I created a minimal form file using the guidance provided and the class.phpmailer.php was unchanged from the download. It must be something simple that I have missed.<br />
It does find the class file because that&#8217;s where the error originates so the path is correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-134624</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Thu, 10 Nov 2011 08:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-134624</guid>
		<description>Hello Phil, that&#039;s strange... 
I&#039;m using phpmailer with many different hosting accounts and never had this problem (remember Wordpress is using phpmailer as well).
Do you double checked all paths and do you uploaded the files again?</description>
		<content:encoded><![CDATA[<p>Hello Phil, that&#8217;s strange&#8230;<br />
I&#8217;m using phpmailer with many different hosting accounts and never had this problem (remember WordPress is using phpmailer as well).<br />
Do you double checked all paths and do you uploaded the files again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Scott</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-134074</link>
		<dc:creator>Phil Scott</dc:creator>
		<pubDate>Mon, 07 Nov 2011 22:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-134074</guid>
		<description>I can&#039;t get phpmailer to work. When the form invokes &quot;require_once(&#039;formfiles/class.phpmailer.php&#039;);&quot;
it generates this error and points to the first php non-comment line of code in the class:

syntax error, unexpected T_ECHO, expecting T_OLD_FUNCTION or T_FUNCTION or T_VARor &#039;}&#039; in /homepages/23/d204211733/htdocs/valleywoodcrafts/formfiles/class.phpmailer.php on line 44

Running PHP 5 on linux server hosted by 1and1</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get phpmailer to work. When the form invokes &#8220;require_once(&#8216;formfiles/class.phpmailer.php&#8217;);&#8221;<br />
it generates this error and points to the first php non-comment line of code in the class:</p>
<p>syntax error, unexpected T_ECHO, expecting T_OLD_FUNCTION or T_FUNCTION or T_VARor &#8216;}&#8217; in /homepages/23/d204211733/htdocs/valleywoodcrafts/formfiles/class.phpmailer.php on line 44</p>
<p>Running PHP 5 on linux server hosted by 1and1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121679</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Tue, 13 Apr 2010 17:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121679</guid>
		<description>I think that&#039;s why open source projects managed by companies like PHPMmailer or Swift having this great documentation, they have just the people to write them. 
The strange thing is that people like to write the documentation for PHP (the best manual I know)</description>
		<content:encoded><![CDATA[<p>I think that&#8217;s why open source projects managed by companies like PHPMmailer or Swift having this great documentation, they have just the people to write them.<br />
The strange thing is that people like to write the documentation for PHP (the best manual I know)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Guest</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121678</link>
		<dc:creator>Ken Guest</dc:creator>
		<pubDate>Tue, 13 Apr 2010 14:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121678</guid>
		<description>Olaf: point taken, and it&#039;s true to say there are a number of PEAR packages that would probably be used much more if their documentation was up to scratch!

Unfortunately it&#039;s the same old OSS problem: nobody seems to like writing documentation so doing so tends to be either forgotten about or left for too long.</description>
		<content:encoded><![CDATA[<p>Olaf: point taken, and it&#8217;s true to say there are a number of PEAR packages that would probably be used much more if their documentation was up to scratch!</p>
<p>Unfortunately it&#8217;s the same old OSS problem: nobody seems to like writing documentation so doing so tends to be either forgotten about or left for too long.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yannick K.</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121677</link>
		<dc:creator>Yannick K.</dc:creator>
		<pubDate>Tue, 13 Apr 2010 09:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121677</guid>
		<description>Good ! :)</description>
		<content:encoded><![CDATA[<p>Good ! <img src='http://cdn.web-development-blog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121676</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Tue, 13 Apr 2010 07:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121676</guid>
		<description>Okay here is the example for eZ components:

&lt;pre lang=&quot;php&quot;&gt;
ini_set(&#039;include_path&#039;, &#039;.:/path2directory/ezcomponents/&#039;);
require_once &#039;Base/src/ezc_bootstrap.php&#039;;

$mail = new ezcMailComposer();
$mail-&gt;from = new ezcMailAddress(&#039;you@mail.com&#039;, &#039;Your name&#039;);
$mail-&gt;addTo(new ezcMailAddress(&#039;contact@mailservice.us&#039;, &#039;Your friend&#039;));
$mail-&gt;subject = &#039;This is the subject of the example mail&#039;;
$mail-&gt;plainText = &#039;This is the body of the example mail.&#039;;
$mail-&gt;addFileAttachment(&#039;path/logo.png&#039;);
$mail-&gt;build();
$options = new ezcMailSmtpTransportOptions();
$transport = new ezcMailSmtpTransport(&#039;smtp.server.com&#039;, &#039;smtpUser&#039;, &#039;smtpPassword&#039;, null, $options);
$transport-&gt;send($mail);
&lt;/pre&gt;

Since this was the first time I have used eZ components I needed to play around to get in working (checking code which files I need to upload, etc.). The good news if you follow the &lt;a href=&quot;http://ezcomponents.org/docs/install&quot; rel=&quot;nofollow&quot;&gt;installation&lt;/a&gt; instructions, it&#039;s very easy to setup: Just like me create the include path and include the bootstrap file and you&#039;re done! Beside this you don&#039;t need to upload the whole framework, the classes (you need) are enough (including autoload and Base). 

The manual is much better than for Zend, a lot of &lt;a href=&quot;http://ezcomponents.org/docs/tutorials/Mail#building-and-sending-mail&quot; rel=&quot;nofollow&quot;&gt;examples&lt;/a&gt; and information. Sure you have to handle a lot of objects, but it seem to me very clear what I have to do. Great framework, I will use it more often!</description>
		<content:encoded><![CDATA[<p>Okay here is the example for eZ components:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'.:/path2directory/ezcomponents/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Base/src/ezc_bootstrap.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$mail</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ezcMailComposer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ezcMailAddress<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'you@mail.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Your name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addTo</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ezcMailAddress<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'contact@mailservice.us'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Your friend'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'This is the subject of the example mail'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">plainText</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'This is the body of the example mail.'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addFileAttachment</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'path/logo.png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">build</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ezcMailSmtpTransportOptions<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$transport</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ezcMailSmtpTransport<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smtp.server.com'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'smtpUser'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'smtpPassword'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$transport</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Since this was the first time I have used eZ components I needed to play around to get in working (checking code which files I need to upload, etc.). The good news if you follow the <a href="http://ezcomponents.org/docs/install" >installation</a> instructions, it&#8217;s very easy to setup: Just like me create the include path and include the bootstrap file and you&#8217;re done! Beside this you don&#8217;t need to upload the whole framework, the classes (you need) are enough (including autoload and Base). </p>
<p>The manual is much better than for Zend, a lot of <a href="http://ezcomponents.org/docs/tutorials/Mail#building-and-sending-mail" >examples</a> and information. Sure you have to handle a lot of objects, but it seem to me very clear what I have to do. Great framework, I will use it more often!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121674</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Tue, 13 Apr 2010 05:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121674</guid>
		<description>Alexandr, I will add the eZ example today. Please check my opinion about the PEAR example in my previous comment.</description>
		<content:encoded><![CDATA[<p>Alexandr, I will add the eZ example today. Please check my opinion about the PEAR example in my previous comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandr Kosarev</title>
		<link>http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/#comment-121673</link>
		<dc:creator>Alexandr Kosarev</dc:creator>
		<pubDate>Tue, 13 Apr 2010 05:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=1049#comment-121673</guid>
		<description>I think you should review eZ and PEAR mail components, they both have power and flexibility to operate via SMTP.</description>
		<content:encoded><![CDATA[<p>I think you should review eZ and PEAR mail components, they both have power and flexibility to operate via SMTP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 26/36 queries in 0.023 seconds using disk: basic
Object Caching 482/486 objects using disk: basic
Content Delivery Network via cdn.web-development-blog.com

Served from: www.web-development-blog.com @ 2012-02-08 10:57:30 -->
