PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail » Bug #5857

Cc mail aren't send

Details

Submitted2005-11-03 14:44 UTC
Fromjc dot glombard at hafiba dot fr
StatusBogus
PackageMail
PHP Version5.0.5
OSWindows
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.