logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Mail/Mime.php generated message triggering virus alert: msg#00547

Subject: Mail/Mime.php generated message triggering virus alert
I have been using Mail/Mime.php to generate a newsletter sent out to a
few thousand people weekly and I have been getting notices that the
newsletter triggered either "Outlook 'CR' Vulnerability" or "Conflicting
Encoding Vulnerability" viruses.  I have distilled the code down to
something similar to the example in the docs, sent it to one of the mail
servers that bounced the newsletter and it still bounces.  Here is the
code:

<?php
$to = "postmaster@xxxxxxxxxxxx";
include('Mail.php');
include('Mail/mime.php');

$text = 'Text version of email';
$html = '<html><body>HTML version of email</body></html>';
$crlf = "\r\n";
$hdrs = array(
                      'From'    => 'me@xxxxxxxxxxx',
                      'Subject' => 'Test mime message'
);

$mime = new Mail_mime($crlf);

$mime->setTXTBody($text);
$mime->setHTMLBody($html);

$body = $mime->get();
$hdrs = $mime->headers($hdrs);

$mail =& Mail::factory('mail');
$mail->send($to, $hdrs, $body);
?>

Sending this to the email address indicated in the code triggers the
"Conflicting Encoding Vulnerability" virus.  At least this happens from
my system (Postfix on FreeBSD).  Mail.php and Mail/Mime.php are both the
current versions.  

culley

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>