in reply to System Command Issues

To send mail from a Perl program, you have at least four choices:

  1. Use a MUA (mail user agent). e.g. mail, mailx
  2. Use a MTA (mail transport agent), e.g. sendmail
  3. Connect to a SMTP server
  4. Use a CPAN module

I personally use the Mail::Mailer CPAN module, which hides these choices behind a simple interface. The recent Perl Email Project, see Email::Simple, started by Simon Cozens and now maintained by Casey West, is worth a look, though I haven't used it.

Replies are listed 'Best First'.
Re^2: System Command Issues
by rlucas (Scribe) on Jun 08, 2005 at 22:00 UTC
    Mail::Mailer is OK but forks a process without telling you, which can cause some goofiness that bit me in the ass.

    See http://perlmonks.org/?node_id=459739

    I recommend MIME::Simple.