PEAR mail

From: Date: Mon, 08 Nov 2004 14:21:54 +0000
Subject: PEAR mail
Groups: php.general 
Request: Send a blank email to php-general+get-201528@lists.php.net to get a copy of this message
hi, i'm using Mail PEAR package and i want to send a mail to a recipient and to some other in Cc. So i try to add Cc in header but it failed and mail didn't been delivered to Cc. It was only delivered to adress specified in From field. I use that code : $hdrs = array(
                   "From"    => "adresse1@test.com",                                      "Cc" => "adresse2@test.com"
                   "Subject" => "Tests"
                   );
   $mime = new Mail_mime($crlf);      $mime->setHTMLBody(stripslashes($html));
$body = $mime->get(); $hdrs = $mime->headers($hdrs);
   $mail =& Mail::factory('smtp',$params);        $mail->send($recipients, $hdrs, $body);
Can someone say me how to use pear package to send a mail to an adress and to send it in copy to another one ? Marc SERRA.

« previous php.general (#201528) next »