in reply to Perl Email attchment using Sendmail with out nay perl Modules like (MIME::Lite .etc )
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl Email attchment using Sendmail with out nay perl Modules like (MIME::Lite .etc )
by ppnair (Initiate) on Oct 15, 2012 at 12:29 UTC | |
Re^2: Perl Email attchment using Sendmail with out nay perl Modules like (MIME::Lite .etc )
by ppnair (Initiate) on Oct 16, 2012 at 12:03 UTC | |
by McA (Priest) on Oct 16, 2012 at 12:22 UTC |
In Section
Seekers of Perl Wisdom