PEAR is archived and read-only

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

Home » Mail » Mail » Bug #2476

Mail Package: Bcc Header visible

Details

Submitted2004-10-07 15:22 UTC
Frombmichel at gunterra dot com
StatusBogus
PackageMail
PHP Version4.3.8
OSFedora Core 1
Roadmaps(Not assigned)

Comments

[2004-10-07 15:22 UTC] bmichel at gunterra dot com

Description:
------------
Hello,

Send email with Bcc header.
When email arrives, Bcc recipients are visibles.

regards

Brice

Reproduce code:
---------------
$recipients = $db->fields['email'];

$headers['From'] = 'Admin <admin@gunterra.com>';
$headers['To']= 'MyTest <mtest@gunterra.com>';
$headers['Bcc']= 'MyBCC <test@gunterra.com>';
$headers['Subject'] = 'New password generated';

$params['host'] = $domain_name;
$params['port'] = '25';
$params['auth'] = true;
$params['username'] = $admin_user_name;
$params['password'] = $admin_password;

$mime = new Mail_mime("\n");

$text = 'Your new password is '.$new_password;

$mime->setTXTBody($text);

$content = $mime->get();

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('smtp', $params);
$mail_object->send($recipients, $mime->headers($headers), $content);

Expected result:
----------------
header received :

.
.
MIME-Version: 1.0
From: "Admin" <admin@gunterra.com>
To: "MyTest" <mtest@gunterra.com>
Subject: New password generated
.
.
.

Actual result:
--------------
header received :

.
.
MIME-Version: 1.0
From: "Admin" <admin@gunterra.com>
To: "MyTest" <mtest@gunterra.com>
Bcc: MyBCC <test@gunterra.com>
Subject: New password generated
.
.
.

[2005-02-24 14:14 UTC] cassabarbosa at ig dot com dot br

How can I do this in the recipients variable ?
Thanks.