Qmail Scanner - Local HTML emails seems to be broken

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
mrhankey_ch
Forum User
Forum User
Posts: 26
Joined: Wed Feb 11, 2009 7:42 am

Qmail Scanner - Local HTML emails seems to be broken

Unread post 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!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post 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.
mrhankey_ch
Forum User
Forum User
Posts: 26
Joined: Wed Feb 11, 2009 7:42 am

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

Unread post 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!
albans
Forum User
Forum User
Posts: 59
Joined: Tue Mar 28, 2006 4:03 am

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

Unread post 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!
Post Reply