PEAR MAIL package add To to end of sender why this code dos'nt work correct

From: Date: Sun, 02 Oct 2005 18:06:14 +0000
Subject: PEAR MAIL package add To to end of sender why this code dos'nt work correct
References: 1 2  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-21197@lists.php.net to get a copy of this message
hi every one i am using PEAR mail package about to sending mail. it sends but add a additional "To" into end of From like this anyone@mail.com ==>anyone@mail.comTo the code is like this. $recipients = 'recipient@mail.com'; $headers['From'] = $seder_mail; $headers['To']= 'some@mail.com'; $headers['Subject'] = 'mail subject here'; $body .="body of email"; $params['sendmail_path'] = '/usr/lib/sendmail'; // Create the mail object using the Mail::factory method Mail::factory('sendmail', $params); Mail::send($recipients, $headers, $body); +++++++++++++++++++++++++++++ please help me. thanks in advance. ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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