Mail/Mime.php generated message triggering virus alert

From: Date: Mon, 17 Feb 2003 19:31:42 +0000
Subject: Mail/Mime.php generated message triggering virus alert
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13420@lists.php.net to get a copy of this message
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@allconet.org"; 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@example.com', '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

« previous php.pear.dev (#13420) next »