Hi Ricardo,
Here is what I get when I use Email::Sender::Transport::SMTP:
==========================================================================================
my $email = Email::MIME->create(
header_str => [
Bcc => join(',', @{$recipient_list_r}), # hide the recipient list
From => $from,
Subject => $subject,
],
parts => [ @parts ],
);
my $transport = Email::Sender::Transport::SMTP->new();
sendmail($email, { transport => $transport });
==========================================================================================
Here is a received Email header:
==========================================================================================
Return-Path: <cargocult_moc_support@cargocult.ca>
Received: from ccc.cargocult.ca ([unix socket])
by ccc.cargocult.ca (Cyrus v2.3.7-Invoca-RPM-2.3.7-12.el5_7.2) with LMTPA;
Tue, 06 Dec 2011 18:11:40 -0500
X-Sieve: CMU Sieve 2.3
Received: from cargocult.cargocult.ca (d24-150-190-43.home.cgocable.net [24.150.190.43])
by ccc.cargocult.ca (8.13.8/8.13.8) with ESMTP id pB6NBd4b013782;
Tue, 6 Dec 2011 18:11:39 -0500
Received: from localhost.localdomain (cargocult.cargocult.ca [127.0.0.1])
by cargocult.cargocult.ca (8.13.8/8.13.8) with ESMTP id pB6NBdB2005769;
Tue, 6 Dec 2011 18:11:39 -0500
Message-Id: <201112062311.pB6NBdB2005769@cargocult.cargocult.ca>
Bcc:
From: cargocult_moc_support@cargocult.ca
Subject: MOC - 2011/12/06 - update #1
Date: Tue, 6 Dec 2011 18:11:39 -0500
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="1323213099.C02ffBb4.5723"; charset="us-ascii"
==========================================================================================
And here are the sendmail log entries for the outbound delivery, i.e. this was the SMTP server
that Email::Sender::Transport::SMTP connected to:
Dec 6 18:11:39 cargocult sendmail[5769]: pB6NBdB2005769:
from=<cargocult_moc_support@cargocult.ca>, size=85616, class=0, nrcpts=2,
msgid=<201112062311.pB6NBdB2005769@cargocult.cargocult.ca>, proto=ESMTP, daemon=MTA,
relay=cargocult.cargocult.ca [127.0.0.1]
Dec 6 18:11:40 cargocult sendmail[5771]: pB6NBdB2005769:
to=<cargocultcorp@gmail.com>,<sfo@cargocult.ca>, delay=00:00:01, xdelay=00:00:01, mailer=relay,
pri=235616, relay=ccc.cargocult.ca. [199.85.16.201], dsn=2.0.0, stat=Sent (pB6NBd4b013782 Message
accepted for delivery)
You can see that the Bcc header addresses (<cargocultcorp@gmail.com>,<sfo@cargocult.ca>) were
passed to the transport/envelope layer but did not appear in the Bcc: header above.
But there is still an empty Bcc: header in the Email.
Thoughts ?
--
Stephen Oberski sfo@cargocult.ca
Show quoted text> Hi Ricardo,
>
> I'll give that a try and report back.
>
> I appreciate the fact that you developed and maintain the Email::Sender (along with a large number
> of others) package so I hope I didn't come across to strongly in my previous message.
>
> I'm just looking to send my Emails to an undisclosed recipient list and my current problems with
> Email::Sender are more than likely due to my ignorance.
>
> Thanks,
>
> --
> Stephen Oberski sfo@cargocult.ca
>
>> <URL:
https://rt.cpan.org/Ticket/Display.html?id=73055 >
>>
>>> but unlike the To and Cc headers the Bcc addresses do not
>>> appear in the Email header.
>>
>> What transport is being used under the hood? Sendmail? If so, it is
>> removing the header for you.
>>
>> Re-send using the SMTP transport, for example, and you will see the
>> header is left in place.
>>
>
>
>