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" => "[EMAIL PROTECTED]", "Cc" => "[EMAIL PROTECTED]"
"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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php