perlmad has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
Now I am trying MIME::Lite module and I have a doubt on sending email along with file and bcc content
Code that i have tried
if($from ne "" && $to ne ""){ my $content= MIME::Lite->new( From => $from, To => $to, Cc => $cc?$cc:"", Subject => $subject?$subject:"No Subject", Data => $content?$content:"No Content", Bcc => $bcc?$bcc:"" ); $content->attach( Type => 'TEXT', Data => 'Here is the text for testing' ); $content->attach( Type => 'FILE', path => 'path', Filename=> 'text.txt', Disposition =>'attachment' ); }
I couldn't add "BCC" and "File" with the email , Any Suggestion???
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email Sending issue with the file
by Corion (Patriarch) on May 18, 2016 at 07:00 UTC | |
by perlmad (Sexton) on May 18, 2016 at 09:03 UTC | |
by Corion (Patriarch) on May 18, 2016 at 09:04 UTC | |
by perlmad (Sexton) on May 18, 2016 at 10:52 UTC |