in reply to Mail Question

You could also use the mail command:
$subject = "Mail Message"; $to = "name@server.com"; open(MAIL, "|mail -s '$subject' $to"); print MAIL "message body" print MAIL "\n.\n"; # to quit close(MAIL);

Replies are listed 'Best First'.
RE: Re: Mail Question
by Jonathan (Curate) on Apr 14, 2000 at 13:15 UTC
    If available 'mailx' gives more flexibility, specially when using the tilda sequences, for example if you have a the contents of data file to send you can do something like $example = `mailx whoever\@whereever.com <<! ~<$file_name !`;
      Hmm, managed to lose the rest of my code. The point was you can include files in the mail message with a simple ~<$filename call