Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::Simple; use Mail::Mailer; open(RES,"type bas.txt |"); while(<RES>) { print $_; } use Mail::Sendmail; my %mail = ( To => 'toemailhere', From => 'fromemailhere', Subject => "Output", Message => '$_', ); $mail{smtp} = '111.222.222.333'; sendmail(%mail) || die "\nProblem! $Mail::Sendmail::error\n"; close(RES);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Output data into an email message.
by DamnDirtyApe (Curate) on Sep 03, 2002 at 17:13 UTC | |
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 | |
|
Re: Output data into an email message.
by zigdon (Deacon) on Sep 03, 2002 at 17:00 UTC | |
|
Re: Output data into an email message.
by insensate (Hermit) on Sep 03, 2002 at 16:59 UTC | |
|
Re: Output data into an email message.
by fglock (Vicar) on Sep 03, 2002 at 17:17 UTC |