Home » Mail » Mail » Bug #5857
Cc mail aren't send
Details
| Submitted | 2005-11-03 14:44 UTC |
|---|---|
| From | jc dot glombard at hafiba dot fr |
| Status | Bogus |
| Package | |
| PHP Version | 5.0.5 |
| OS | Windows |
| Roadmaps | (Not assigned) |
Comments
[2005-11-03 14:44 UTC] jc dot glombard at hafiba dot fr
Description:
------------
PEAR::Mail v1.1.9
PEAR::Mail_Mime v1.3.1
I need to send mail whith cc and bcc.
My mail are sending but the cc not :(
Test script:
---------------
$mail_options = array('driver' => 'smtp',
'host' => 'mail.myfirm.net',
'port' => 25,
'auth' => false,
'username' => '',
'password' => '',
);
$MAILS_HEADERS= array('From' => 'test.ccmail@myfirm.net'',
'Subject' => This is a test'
'CC' => 'testcc@myfirm.net',
);
$mime =& new Mail_mime();
$mime->setTXTBody('just a test');
$mailbody = $mime->get();
$mailer =& Mail::factory('smtp',$mail_options);
$mailer->send( 'jhon.doe@myfirm.net',
$mime->headers($MAILS_HEADERS),
$mailbody
);
[2005-11-20 02:10 UTC] chagenbu at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
Headers don't have anything inherent to do with the
recipients. You have to put everyone you want to actually get
the mail into the headers. The headers can claim whoever you
like as a recipient without meaning they get the email.