<?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: Code</title>
	<atom:link href="http://www.callum-macdonald.com/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.callum-macdonald.com</link>
	<description>Callum on life</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:09:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-73674</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Fri, 08 Jul 2011 22:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-73674</guid>
		<description>At first glance it looks like you&#039;re using mail() instead of wp_mail().</description>
		<content:encoded><![CDATA[<p>At first glance it looks like you&#8217;re using mail() instead of wp_mail().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-73671</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 08 Jul 2011 21:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-73671</guid>
		<description>I&#039;m trying to get your smtp email to work with the contact form included with the WP Boldy Theme - http://wordpress.site5.net/boldy/?page_id=8

My webhost requires smtp authentication on all emails, so I installed your plugin, but it is not working with the sendmail script included with the theme: 

1)
          {
              $to = preg_replace(&quot;([\r\n])&quot;, &quot;&quot;, hexstr($_POST[&#039;receiver&#039;]));
			  $from = preg_replace(&quot;([\r\n])&quot;, &quot;&quot;, $_POST[&#039;email&#039;]);
			  $subject = &quot;Website contact message from &quot;.$_POST[&#039;name&#039;];
              $message = $_POST[&#039;comment&#039;];
			  
			  $match = &quot;/(bcc:&#124;cc:&#124;content\-type:)/i&quot;;
				if (preg_match($match, $to) &#124;&#124;
					preg_match($match, $from) &#124;&#124;
					preg_match($match, $message)) {
				  die(&quot;Header injection detected.&quot;);
				}
              $headers = &quot;From: &quot;.$from.&quot;\r\n&quot;;
   			  $headers .= &quot;Reply-to: &quot;.$from.&quot;\r\n&quot;;
             
        if(mail($to, $subject, $message, $headers))
              {
                  echo 1; //SUCCESS
              }
              else {
                  echo 2; //FAILURE - server failure
              }
          }
          else {
       	  echo 3; //FAILURE - not valid email

          }
		  }else{
			 die(&quot;Direct access not allowed!&quot;);
		   }
		   
		    function hexstr($hexstr) {
				  $hexstr = str_replace(&#039; &#039;, &#039;&#039;, $hexstr);
				  $hexstr = str_replace(&#039;\x&#039;, &#039;&#039;, $hexstr);
				  $retstr = pack(&#039;H*&#039;, $hexstr);
				  return $retstr;
				}

      ?&gt;
Any ideas on how to get this working would be much appreciated!</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get your smtp email to work with the contact form included with the WP Boldy Theme &#8211; <a href="http://wordpress.site5.net/boldy/?page_id=8" rel="nofollow">http://wordpress.site5.net/boldy/?page_id=8</a></p>
<p>My webhost requires smtp authentication on all emails, so I installed your plugin, but it is not working with the sendmail script included with the theme: </p>
<p>1)<br />
          {<br />
              $to = preg_replace(&#8220;([\r\n])&#8221;, &#8220;&#8221;, hexstr($_POST['receiver']));<br />
			  $from = preg_replace(&#8220;([\r\n])&#8221;, &#8220;&#8221;, $_POST['email']);<br />
			  $subject = &#8220;Website contact message from &#8220;.$_POST['name'];<br />
              $message = $_POST['comment'];</p>
<p>			  $match = &#8220;/(bcc:|cc:|content\-type:)/i&#8221;;<br />
				if (preg_match($match, $to) ||<br />
					preg_match($match, $from) ||<br />
					preg_match($match, $message)) {<br />
				  die(&#8220;Header injection detected.&#8221;);<br />
				}<br />
              $headers = &#8220;From: &#8220;.$from.&#8221;\r\n&#8221;;<br />
   			  $headers .= &#8220;Reply-to: &#8220;.$from.&#8221;\r\n&#8221;;</p>
<p>        if(mail($to, $subject, $message, $headers))<br />
              {<br />
                  echo 1; //SUCCESS<br />
              }<br />
              else {<br />
                  echo 2; //FAILURE &#8211; server failure<br />
              }<br />
          }<br />
          else {<br />
       	  echo 3; //FAILURE &#8211; not valid email</p>
<p>          }<br />
		  }else{<br />
			 die(&#8220;Direct access not allowed!&#8221;);<br />
		   }</p>
<p>		    function hexstr($hexstr) {<br />
				  $hexstr = str_replace(&#8216; &#8216;, &#8221;, $hexstr);<br />
				  $hexstr = str_replace(&#8216;\x&#8217;, &#8221;, $hexstr);<br />
				  $retstr = pack(&#8216;H*&#8217;, $hexstr);<br />
				  return $retstr;<br />
				}</p>
<p>      ?&gt;<br />
Any ideas on how to get this working would be much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-70091</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 31 May 2011 13:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-70091</guid>
		<description>It looks like your theme uses the same function name (validate_email) as this plugin. The plugin checks that the function does not exist first, but it looks like your theme does not. I suggest contacting the theme author. If you can show me the code in that file (themes/mazine/tiadmin/tiadmin.php) I can compare it against the plugin and recommend a way forward.</description>
		<content:encoded><![CDATA[<p>It looks like your theme uses the same function name (validate_email) as this plugin. The plugin checks that the function does not exist first, but it looks like your theme does not. I suggest contacting the theme author. If you can show me the code in that file (themes/mazine/tiadmin/tiadmin.php) I can compare it against the plugin and recommend a way forward.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-69285</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 24 May 2011 23:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-69285</guid>
		<description>Hello,

Thank you for your WP mail smtp plugin. I&#039;m having problems with my contactt 7 plugin on windows hosting and they recomended I used your plugin. I uploaded it and activated it and then could not get access to my wordpress admin page. The following error appeared:

Fatal error: Cannot redeclare validate_email() (previously declared in D:\Hosting\6171488\html\classiccarpaints\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php:349) inD:\Hosting\6171488\html\classiccarpaints\wp-content\themes\mazine\tiadmin\tiadmin.php on line 100

I had to delete the plugin via FTP (as I had no access to the wordpress admin) in order to get access to wordpress again. Tried installing plugin again. Same error. Can you assist please (I am not a developer, just a graphic designer, so please forgive me if I overlooked something)</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for your WP mail smtp plugin. I&#8217;m having problems with my contactt 7 plugin on windows hosting and they recomended I used your plugin. I uploaded it and activated it and then could not get access to my wordpress admin page. The following error appeared:</p>
<p>Fatal error: Cannot redeclare validate_email() (previously declared in D:\Hosting\6171488\html\classiccarpaints\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php:349) inD:\Hosting\6171488\html\classiccarpaints\wp-content\themes\mazine\tiadmin\tiadmin.php on line 100</p>
<p>I had to delete the plugin via FTP (as I had no access to the wordpress admin) in order to get access to wordpress again. Tried installing plugin again. Same error. Can you assist please (I am not a developer, just a graphic designer, so please forgive me if I overlooked something)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-65131</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sun, 17 Apr 2011 21:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-65131</guid>
		<description>Apologies for the slow response, somehow this slipped through my inbox. I&#039;m not sure what&#039;s going on for you. If you send an email through wp_mail(), as far as I know, WP Mail SMTP should be activated. Unless you&#039;re loading WordPress in a special way that bypasses plugins or something.</description>
		<content:encoded><![CDATA[<p>Apologies for the slow response, somehow this slipped through my inbox. I&#8217;m not sure what&#8217;s going on for you. If you send an email through wp_mail(), as far as I know, WP Mail SMTP should be activated. Unless you&#8217;re loading WordPress in a special way that bypasses plugins or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitar Trepechov</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-64308</link>
		<dc:creator>Dimitar Trepechov</dc:creator>
		<pubDate>Fri, 08 Apr 2011 12:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-64308</guid>
		<description>At this time I&#039;m writing my own plugin for WordPress which needs to send
e-mails. The problem is that when I call the wp_mail() function the messeges
are sent true the standard wordpress function and without using you plugin.</description>
		<content:encoded><![CDATA[<p>At this time I&#8217;m writing my own plugin for WordPress which needs to send<br />
e-mails. The problem is that when I call the wp_mail() function the messeges<br />
are sent true the standard wordpress function and without using you plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-50394</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 05 Oct 2010 17:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-50394</guid>
		<description>Ah, I see the mistake. I have the wrong filename. Thanks for pointing that out. I&#039;m trying to merge that plugin into easy-disable-visual-editor which uses a better approach. I&#039;ll wait to update the readme until I hear back on that process.</description>
		<content:encoded><![CDATA[<p>Ah, I see the mistake. I have the wrong filename. Thanks for pointing that out. I&#8217;m trying to merge that plugin into easy-disable-visual-editor which uses a better approach. I&#8217;ll wait to update the readme until I hear back on that process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jos Velasco</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-50296</link>
		<dc:creator>Jos Velasco</dc:creator>
		<pubDate>Sat, 02 Oct 2010 22:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-50296</guid>
		<description>Read the &quot;disable visual editor&quot; installation steps. You copy/pasted it from your other plugin.</description>
		<content:encoded><![CDATA[<p>Read the &#8220;disable visual editor&#8221; installation steps. You copy/pasted it from your other plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Wampler</title>
		<link>http://www.callum-macdonald.com/code/comment-page-1/#comment-47793</link>
		<dc:creator>Bruce Wampler</dc:creator>
		<pubDate>Mon, 05 Jul 2010 06:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/code/#comment-47793</guid>
		<description>I&#039;m trying to use your WP Random Header on a stock WP 3 with Twenty Ten, and after I activate the plugin, all that is displayed is this:
array(13) { [0]=&gt;  NULL [1]=&gt;  NULL [2]=&gt;  NULL [3]=&gt;  NULL [4]=&gt;  NULL [5]=&gt;  NULL [6]=&gt;  NULL [7]=&gt;  NULL [8]=&gt;  NULL [9]=&gt;  NULL [10]=&gt;  NULL [11]=&gt;  NULL [12]=&gt;  NULL } 

I can see your plugin working on your site, so is there a secret?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use your WP Random Header on a stock WP 3 with Twenty Ten, and after I activate the plugin, all that is displayed is this:<br />
array(13) { [0]=&gt;  NULL [1]=&gt;  NULL [2]=&gt;  NULL [3]=&gt;  NULL [4]=&gt;  NULL [5]=&gt;  NULL [6]=&gt;  NULL [7]=&gt;  NULL [8]=&gt;  NULL [9]=&gt;  NULL [10]=&gt;  NULL [11]=&gt;  NULL [12]=&gt;  NULL } </p>
<p>I can see your plugin working on your site, so is there a secret?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

