Page 1 of 1

Qmail Scanner - Local HTML emails seems to be broken

Posted: Fri May 01, 2009 5:01 am
by mrhankey_ch
Hello,

Since I installed Qmail Scanner and ClamAV on my Plesk 9 installation (and even before update to 9.2.1), I noted that local email delivery from PHP (via mail() function, so sendmail) has got a strange behaviour...
It seems that those mail are broken.

For example, IMP doesn't understand that they're HTML encoded, and Thunderbird/Outlook manage them as SPAM (also the content is broken).

The strangest thing: if I use the same code to send emails to external email addresses, the format is perfect (I tried on different external hosts with different mail clients).

Seriously, I don't really get where to look...
Anybody got an idea?

THANKS!

Re: Qmail Scanner - Local HTML emails seems to be broken

Posted: Fri May 01, 2009 8:25 am
by scott
It could be that your code for sending mail isn't following the mime standards correctly. If I remember correctly you have to terminate the line with \n. If you use windows to edit the file, it will add a \r or ^M after that and you'll break the mime format.

Re: Qmail Scanner - Local HTML emails seems to be broken

Posted: Fri May 01, 2009 8:34 am
by mrhankey_ch
Yep, you're right, and I already corrected this bug once...
In fact, I put the latest version (5.0) of PHPMailer and everything works fine with this library!

My last problem is with the magento newsletter... I'm still searching!

Re: Qmail Scanner - Local HTML emails seems to be broken

Posted: Fri May 01, 2009 1:17 pm
by albans
I finally found a solution for Magento, it was definitely NOT LINKED to qmail-scanner...
So sorry for thinking of it!

My solution is explained here (in french):
http://support.oxegena.ch/index.php?200 ... g-php-spam
It simply helps Magento to create nice HTML emails with boundaries!