fshrewsb has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm using Email::Mime to construct an object like this :
my $email = Email::MIME->create( header_str =>[ To => $email_to, Cc => $email_cc, Bcc => $email_bcc, From => $email_from, Subject => $email_subject ], body_str =>$email_body, attributes => { content_type => 'text/html', charset => 'utf8', encoding => 'quoted-printable' } );
and sending it using this :
try { sendmail( $email, { from => $email_from, transport => Email::Sender::Transport::SMTP->new({host => $S +MTP_HOSTNAME,port => $SMTP_PORT}) } ); } catch { print $_->message};
If I do a print $email->as_string I can see the Bcc header, but when I do a tcpdump I can see that there is no RCPT TO: message for the Bcc email address. To and Cc email addresses receive the email. Does anyone know how to get Email:MIME to work with Bcc ? Email:Stuff works, but I would prefer to use Email:MIME.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email::MIME won't send email to Bcc addresses
by tobyink (Canon) on Jan 11, 2012 at 11:44 UTC | |
by fshrewsb (Acolyte) on Jan 11, 2012 at 14:45 UTC | |
|
Re: Email::MIME won't send email to Bcc addresses
by rjbs (Pilgrim) on Jan 11, 2012 at 12:39 UTC | |
by Anonymous Monk on Jan 12, 2012 at 01:47 UTC | |
|
Re: Email::MIME won't send email to Bcc addresses
by Anonymous Monk on Jan 11, 2012 at 10:11 UTC |