in reply to How to send email
Do you need to create a file? You could do all of this in memory. Just create a scalar that contains your mail message. Then send it using one of the Mail:: modules. Mail::Mailer may do what you want:
You can also use SMTP or mail to send your mail.use Mail::Mailer; my $mailer = new Mail::Mailer 'sendmail'; $mailer->open( { To => 'foo@bar.com', Subject => 'Report' } ); ## Create report in scalar $report... then write it. print $mailer $report; $mailer->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: How to send email
by cleen (Pilgrim) on Jul 06, 2000 at 04:09 UTC |