<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ecommy - your ecommerce support for your online business &#187; Linux</title>
	<atom:link href="http://www.ecommy.com/t/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ecommy.com</link>
	<description>the path to your business success</description>
	<lastBuildDate>Tue, 08 Nov 2011 18:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Overlength date field error in prestashop</title>
		<link>http://www.ecommy.com/web-development/overlength-date-field-error-in-prestashop</link>
		<comments>http://www.ecommy.com/web-development/overlength-date-field-error-in-prestashop#comments</comments>
		<pubDate>Sat, 12 Dec 2009 14:40:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[prestashop]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=481</guid>
		<description><![CDATA[      
      Recently I got this error when trying to send emails in prestashop. An email was bouncing back and it contained the following message: This message has been rejected because it has an overlength date field which can be used to subvert Microsoft mail programs After a lot of headaches and a cofee I manage to [...]]]></description>
			<content:encoded><![CDATA[      
      <p>Recently I got this error when trying to send emails in prestashop.<br />
An email was bouncing back and it contained the following message:<br />
<code>This message has been rejected because it has<br />
an overlength date field which can be used<br />
to subvert Microsoft mail programs</code></p>
<p>After a lot of headaches and a cofee <img src='http://www.ecommy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I manage to detect what was wrong:<br />
Presta uses in the email class a variable $templateVars<br />
this was like:</p>
<blockquote><p>$templateVars = array(<br />
&#8216;{date_facturare}&#8217; =&gt;<br />
&#8216;Nume Firma: &#8216;.$invoice-&gt;company.&#8217;&lt;br&gt;&#8217;.<br />
&#8216;Cod fiscal: &#8216;.$invoice-&gt;tax_code.&#8217;&lt;br&gt;&#8217;.<br />
&#8216;Registrul Comertului: &#8216;.$invoice-&gt;reg_data.&#8217;&lt;br&gt;&#8217;.<br />
&#8216;IBAN: &#8216;.$customer-&gt;iban.&#8217;&lt;br&gt;&#8217;,<br />
&#8216;CNP: &#8216;.$invoice-&gt;cnp.&#8217;&lt;br&gt;&#8217;,<br />
&#8216;{firstname}&#8217; =&gt; $customer-&gt;firstname,<br />
&#8216;{lastname}&#8217; =&gt; $customer-&gt;lastname, &#8230;</p></blockquote>
<p>However the problem was because of a , instead of .<br />
<code>'IBAN: '.$customer-&gt;iban.'&lt;br&gt;',</code><br />
should have been:<br />
<code>'IBAN: '.$customer-&gt;iban.'&lt;br&gt;'.</code></p>
<p>Because of the wrong &#8220;,&#8221;, $templateVars[0] was taking a long value and apparently Swift Mailer was appending it to the header date of the email hence the error with the overlength date field.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/web-development/overlength-date-field-error-in-prestashop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.ecommy.com/t/linux/feed ) in 0.25094 seconds, on Feb 6th, 2012 at 10:07 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 6th, 2012 at 11:07 am UTC -->
