2017-10-07 Note added by Athanasius: This node was copied from StackOverflow. See also Re: Extract specify values in file log using perl.
I'm using Email::MIME for sending mail from Perl script. All mails are going fine. But thing is, when I have given multiple Bcc mail id, For Bcc address Mail is not sending. It doesn't throw any error. Can Anyone help in this case?
my $username = usename; my $password = password; my $from = fromaddress; my $to = to; my $subject = subject; my $body = body; my $host = host; my $port = port; my $bcc = bcc; my $email = Email::MIME->create( header_str => [ From => Email::Address::XS->new($display_name,$from), To => $to, Subject => Encode::encode('MIME-Header-ISO_2022_JP', $subject), ], parts => [ @body1 ], ); $email->header_str_set( Bcc => $bcc_a); $_->encoding_set( 'base64' ) for $email->parts; try_to_sendmail( $email, { transport => Email::Sender::Transport::SMTP::TLS->new( host => $host, port => $port, username => $username, password => $password, ) } ) or do { print "Error occured while mail send\n"; }
In reply to Email::MIME Won't send BCC address in Perl by IruP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |