in reply to Output data into an email message.
Rather than messing around with pipes, why not just capture the file to a scalar:
open RES, 'bas.txt'; my $msg; do { local $/; $msg = <RES> }; close RES;
...then just send that.
my %mail = ( To => 'toemailhere', From => 'fromemailhere', Subject => "Output", Message => $msg );
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Output data into an email message.
by Anonymous Monk on Sep 03, 2002 at 17:29 UTC | |
by fglock (Vicar) on Sep 03, 2002 at 17:31 UTC | |
by Anonymous Monk on Sep 03, 2002 at 17:54 UTC |