Hi
If you want to build a mail with attachment you have to build a valid MIME-message. That is not trivial. That's why there are so many big packages at CPAN. But if you really have the need, than I would suggest to look at the cli tool mail of your OS. The newer versions are able to handle attachments.
So my proposal:
my $rc = system("echo '' | mail -s 'Test' -a $file $to");
Best regards
McA
In reply to Re: Perl Email attchment using Sendmail with out nay perl Modules like (MIME::Lite .etc )
by McA
in thread Perl Email attchment using Sendmail with out nay perl Modules like (MIME::Lite .etc )
by ppnair
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |