Subject: | SMTP and the Bcc is visable |
This patch is for the problem that SMTP transport has a visible Bcc in
Header. The Bcc in header is ok and needed for sendmail but not for
SMTP. So I have removed them exactly here in "SMTP.pm". Now the user
can change the transport without any problems.
Index: SMTP.pm
===================================================================
--- SMTP.pm
+++ SMTP.pm
@@ -149,6 +149,10 @@
# restore Pobox's support for streaming, code-based messages, and
arrays here
# -- rjbs, 2008-12-04
+ # Bcc in header will be delivered, remove them
+ # https://rt.cpan.org/Public/Bug/Display.html?id=60911
+ $email->set_header( Bcc => q{} );
+
$smtp->data or $FAULT->("error at DATA
start");
$smtp->datasend($email->as_string) or $FAULT->("error at during
DATA");
$smtp->dataend or $FAULT->("error at after
DATA");