<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">
<channel>
	<title>Comments for Anvil Studios</title>
	
	<link>http://anvilstudios.co.za/blog</link>
	<description>web development</description>
	<lastBuildDate>Mon, 12 Jul 2010 09:50:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="anvilstudioscomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AnvilStudiosComments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="anvilstudioscomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on InnoDB fulltext search with ranking by Abraham</title>
		<link>http://anvilstudios.co.za/blog/mysql/innodb-fulltext-search-with-ranking/comment-page-1/#comment-4072</link>
		<dc:creator>Abraham</dc:creator>
		<pubDate>Mon, 12 Jul 2010 09:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=14#comment-4072</guid>
		<description>Thanks @gamaki!
I've only used the query on smaller sets of data, nothing "huge" yet. So if you have a huge dataset to test it on, please let everyone know your results!</description>
		<content:encoded><![CDATA[<p>Thanks @gamaki!</p>
<p>I&#8217;ve only used the query on smaller sets of data, nothing &#8220;huge&#8221; yet. So if you have a huge dataset to test it on, please let everyone know your results!</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/gGR7YYnc4ow" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/gGR7YYnc4ow" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on InnoDB fulltext search with ranking by gamaki</title>
		<link>http://anvilstudios.co.za/blog/mysql/innodb-fulltext-search-with-ranking/comment-page-1/#comment-4063</link>
		<dc:creator>gamaki</dc:creator>
		<pubDate>Sat, 10 Jul 2010 10:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=14#comment-4063</guid>
		<description>Amazing :)
I've tried and it's working really fine.
Have you tried with a huge database ?
Cheers</description>
		<content:encoded><![CDATA[<p>Amazing <img src='http://anvilstudios.co.za/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve tried and it&#8217;s working really fine.</p>
<p>Have you tried with a huge database ?</p>
<p>Cheers</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/c2QW_7d8HzU" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/c2QW_7d8HzU" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL Server (MSSQL) pre-connection setup in PHP by Razvan</title>
		<link>http://anvilstudios.co.za/blog/php/sql-server-mssql-pre-connection-setup-in-php/comment-page-1/#comment-4015</link>
		<dc:creator>Razvan</dc:creator>
		<pubDate>Mon, 28 Jun 2010 18:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=242#comment-4015</guid>
		<description>Great tip with ntwdblib.dll. Thanks for sharing</description>
		<content:encoded><![CDATA[<p>Great tip with ntwdblib.dll. Thanks for sharing</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/KVtdzYSIE2I" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/KVtdzYSIE2I" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on phpmailer 5.1 fsockopen connection refused by Deon</title>
		<link>http://anvilstudios.co.za/blog/php/phpmailer-5-1-fsockopen-connection-refused/comment-page-1/#comment-3903</link>
		<dc:creator>Deon</dc:creator>
		<pubDate>Fri, 04 Jun 2010 12:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=519#comment-3903</guid>
		<description>I had a issue recently while working on CakePHP which had a similar solution. I was trying to send a mail via a smtp server with cake. Everything seemed to work fine with our details and with some other test details, but when I input the client's details I got a 550 Authentication Required errors.
I input the details into Outlook and into gmail and I could send emails just fine.
My code looked as follows:
[php]
$this-&gt;Email-&gt;template = 'activate';
$this-&gt;Email-&gt;sendAs = 'both';
$this-&gt;Email-&gt;smtpOptions = array(
   'port'=&gt;$port,
   'timeout'=&gt;'30',
   'host' =&gt; $host,
   'username'=&gt;$username,
   'password'=&gt;$password,
);
$this-&gt;Email-&gt;delivery = 'smtp';
$this-&gt;Email-&gt;send();
[/php]
All standard if you look at the &lt;a href="http://book.cakephp.org/view/481/Sending-A-Message-Using-SMTP" rel="nofollow"&gt;cookbook&lt;/a&gt;.
After desperately looking for a solution for about just as long as we looked for the problem with phpmailer I decided, why not. I changed the line
[php]
$this-&gt;Email-&gt;delivery = 'smtp';
[/php]
to
[php]
$this-&gt;Email-&gt;delivery = 'SMTP';
[/php]
and then BAM. It worked. So strange.</description>
		<content:encoded><![CDATA[<p>I had a issue recently while working on CakePHP which had a similar solution. I was trying to send a mail via a smtp server with cake. Everything seemed to work fine with our details and with some other test details, but when I input the client&#8217;s details I got a 550 Authentication Required errors.</p>
<p>I input the details into Outlook and into gmail and I could send emails just fine.</p>
<p>My code looked as follows:</p>
<pre class="brush: php;">
$this-&gt;Email-&gt;template = 'activate';
$this-&gt;Email-&gt;sendAs = 'both';
$this-&gt;Email-&gt;smtpOptions = array(
   'port'=&gt;$port,
   'timeout'=&gt;'30',
   'host' =&gt; $host,
   'username'=&gt;$username,
   'password'=&gt;$password,
);
$this-&gt;Email-&gt;delivery = 'smtp';
$this-&gt;Email-&gt;send();
</pre>
<p>All standard if you look at the <a href="http://book.cakephp.org/view/481/Sending-A-Message-Using-SMTP" rel="nofollow">cookbook</a>.<br />
After desperately looking for a solution for about just as long as we looked for the problem with phpmailer I decided, why not. I changed the line</p>
<pre class="brush: php;">
$this-&gt;Email-&gt;delivery = 'smtp';
</pre>
<p>to</p>
<pre class="brush: php;">
$this-&gt;Email-&gt;delivery = 'SMTP';
</pre>
<p>and then BAM. It worked. So strange.</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/TcZbszeU7vA" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/TcZbszeU7vA" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on phpmailer 5.1 fsockopen connection refused by Abraham</title>
		<link>http://anvilstudios.co.za/blog/php/phpmailer-5-1-fsockopen-connection-refused/comment-page-1/#comment-3887</link>
		<dc:creator>Abraham</dc:creator>
		<pubDate>Tue, 01 Jun 2010 14:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=519#comment-3887</guid>
		<description>&lt;strong&gt;Quick tip :&lt;/strong&gt;
When multiple cases in a switch do the same thing, you can group them — just don't break from the case, and so let control pass to the next line, i.e. :
[php]
    case 'SMTP':
    case 'smtp':
        return $this-&gt;SmtpSend($header, $body);
[/php]</description>
		<content:encoded><![CDATA[<p><strong>Quick tip :</strong><br />
When multiple cases in a switch do the same thing, you can group them &mdash; just don&#8217;t break from the case, and so let control pass to the next line, i.e. :</p>
<pre class="brush: php;">
    case 'SMTP':
    case 'smtp':
        return $this-&gt;SmtpSend($header, $body);
</pre>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/DtGuXolLYPs" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/DtGuXolLYPs" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating Circular div for CSS3 compatible browsers by Maicon Sobczak</title>
		<link>http://anvilstudios.co.za/blog/css/creating-circular-for-css3-compatible-browsers/comment-page-1/#comment-3886</link>
		<dc:creator>Maicon Sobczak</dc:creator>
		<pubDate>Tue, 01 Jun 2010 13:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=194#comment-3886</guid>
		<description>Great tip!</description>
		<content:encoded><![CDATA[<p>Great tip!</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/yN4zJAJSB7M" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/yN4zJAJSB7M" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on phpmailer 5.1 fsockopen connection refused by Nico</title>
		<link>http://anvilstudios.co.za/blog/php/phpmailer-5-1-fsockopen-connection-refused/comment-page-1/#comment-3878</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Mon, 31 May 2010 12:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=519#comment-3878</guid>
		<description>Hi Chris
After reading your comment I went through the code a few times, and I believe you might be right, I can not see that the variable Mailer is ever used externally, only internally. What I forgot to mention in my post however is that I did change some of the code in the phpmailer class. I changed the switch-case code in the send function to this:
[php]
      // Choose the mailer and send through it
      switch($this-&gt;Mailer) {
        case 'sendmail':
          return $this-&gt;SendmailSend($header, $body);
        case 'SMTP':
          return $this-&gt;SmtpSend($header, $body);
        case 'smtp':
          return $this-&gt;SmtpSend($header, $body);
        default:
          return $this-&gt;MailSend($header, $body);
      }
[/php]
adding the SMTP in capital letters to be sure it goes through.
I also checked the system by echoing data from the SmtpSend() function to make sure that the system is indeed using SMTP and not mail() or sendmail().
So if then indeed the Mailer variable is never used other than internally than I am still left with no explanation as to why the smtp is now working, and why it was not working prior to the change. If anyone can give me more input it will really be appreciated.
In the meantime I will further investigate it myself.</description>
		<content:encoded><![CDATA[<p>Hi Chris<br />
After reading your comment I went through the code a few times, and I believe you might be right, I can not see that the variable Mailer is ever used externally, only internally. What I forgot to mention in my post however is that I did change some of the code in the phpmailer class. I changed the switch-case code in the send function to this:</p>
<pre class="brush: php;">
      // Choose the mailer and send through it
      switch($this-&gt;Mailer) {
        case 'sendmail':
          return $this-&gt;SendmailSend($header, $body);
        case 'SMTP':
          return $this-&gt;SmtpSend($header, $body);
        case 'smtp':
          return $this-&gt;SmtpSend($header, $body);
        default:
          return $this-&gt;MailSend($header, $body);
      }
</pre>
<p>adding the SMTP in capital letters to be sure it goes through.<br />
I also checked the system by echoing data from the SmtpSend() function to make sure that the system is indeed using SMTP and not mail() or sendmail().</p>
<p>So if then indeed the Mailer variable is never used other than internally than I am still left with no explanation as to why the smtp is now working, and why it was not working prior to the change. If anyone can give me more input it will really be appreciated.</p>
<p>In the meantime I will further investigate it myself.</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/qn6R8G2o060" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/qn6R8G2o060" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on phpmailer 5.1 fsockopen connection refused by Chris</title>
		<link>http://anvilstudios.co.za/blog/php/phpmailer-5-1-fsockopen-connection-refused/comment-page-1/#comment-3869</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 30 May 2010 23:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=519#comment-3869</guid>
		<description>that can't be right
that variable is for internal use only and it has to be lowercase 'smtp' otherwise it will try and use the mail() method, which is probably why it 'appears' to work</description>
		<content:encoded><![CDATA[<p>that can&#8217;t be right</p>
<p>that variable is for internal use only and it has to be lowercase &#8217;smtp&#8217; otherwise it will try and use the mail() method, which is probably why it &#8216;appears&#8217; to work</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/-EAQ0lXGtKo" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/-EAQ0lXGtKo" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Error vs Exception, Part 1 by Error vs Exception, Part 1 – Anvil Studios | Errors &amp; Geeks</title>
		<link>http://anvilstudios.co.za/blog/php/error-vs-exception-part-1/comment-page-1/#comment-3797</link>
		<dc:creator>Error vs Exception, Part 1 – Anvil Studios | Errors &amp; Geeks</dc:creator>
		<pubDate>Wed, 19 May 2010 15:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=397#comment-3797</guid>
		<description>[...] from: Error vs Exception, Part 1 – Anvil Studios   Tags: abraham, apache, code, css, database, default, JQuery, outlook, PHP, revision-control, [...]</description>
		<content:encoded><![CDATA[<p>[...] from: Error vs Exception, Part 1 &#8211; Anvil Studios   Tags: abraham, apache, code, css, database, default, JQuery, outlook, PHP, revision-control, [...]</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/yfG8KaTdiMI" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/yfG8KaTdiMI" height="1" width="1"/>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Revision Control with Git, Part 2 by Abraham</title>
		<link>http://anvilstudios.co.za/blog/revision-control/revision-control-with-git-part-2/comment-page-1/#comment-3735</link>
		<dc:creator>Abraham</dc:creator>
		<pubDate>Tue, 04 May 2010 08:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=319#comment-3735</guid>
		<description>It's a pleasure @Alexander, glad I could be of assistance.</description>
		<content:encoded><![CDATA[<p>It&#8217;s a pleasure @Alexander, glad I could be of assistance.</p>
<img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/cE0IDZbVRAA" height="1" width="1"/><img src="http://feeds.feedburner.com/~r/AnvilStudiosComments/~4/cE0IDZbVRAA" height="1" width="1"/>]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic page generated in 0.232 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-07-21 12:38:44 --><!-- Compression = gzip -->

