drock has asked for the wisdom of the Perl Monks concerning the following question:
I am using MIME Lite along with sendmail to sendmail when a file is greater than 0 bytes, but it is not actually sending the contents, but the rather the variable name which I understand why, but I want to send the actual data in the Data => line.
thank you, derekmy $scratchtps="/usr/local/log/sctps"; sub mailme { my $msg = MIME::Lite->new( From => 'EDM01 <root@edm01.ohnet>', To => 'Derek Smith <dbsmith@ohiohealth.co +m>', Subject => "EDM Return Tapes", Data => $scratchtps ); $msg->send; } if ( -s $scratchtps ) { &mailme; }
janitored by ybiC: Retitle from "MIME::Lite" because one-word nodetitles hinder site search
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help sending with MIME::Lite
by waswas-fng (Curate) on Sep 17, 2004 at 20:22 UTC | |
by drock (Beadle) on Sep 17, 2004 at 21:07 UTC | |
by waswas-fng (Curate) on Sep 17, 2004 at 21:40 UTC | |
Re: Help sending with MIME::Lite
by TedPride (Priest) on Sep 17, 2004 at 20:30 UTC | |
by etcshadow (Priest) on Sep 17, 2004 at 20:38 UTC | |
by drock (Beadle) on Sep 17, 2004 at 21:49 UTC | |
Re: Help sending with MIME::Lite
by chanio (Priest) on Sep 18, 2004 at 22:02 UTC |
Back to
Seekers of Perl Wisdom