mail() works, Pear::Mail doesn't...

From: Date: Sat, 13 Mar 2004 12:11:59 +0000
Subject: mail() works, Pear::Mail doesn't...
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11277@lists.php.net to get a copy of this message
Hello! I tried to execute a simple Pear::Mail-example such as this: <?php include('Mail.php'); $recipients = 'lists@NOSPAMchillu.com';
$headers['From']    = 'richard@example.com';
$headers['To']      = 'lists@NOSPAMchillu.com';
$headers['Subject'] = 'Test message'; $body = 'Test message'; $mail_object =& Mail::factory('mail'); $mail_object->send($recipients, $headers, $body); ?> (Of course i changed the NOSPAM-part to the real adress *g*). The include works, and if i send a Mail from the same location through the php mail()-method, its also delivered. But if I use the Mail::factory('mail')-method, nothing happens! I have the newest version of Pear::Mail (1.1.2). Another Problem with Pear::Mail_Mime: The "\n"-parameter is not correctly implemented, so if I build a mime-mail and send it through the mail()-function, all the headers from Mail_Mime::get() are NOT seperated! I also tested the "\r\n" on my Unix-Mailserver, without changes... Thnx in advance Ingo

« previous php.pear.general (#11277) next »