No sendmail on Windows -- use Mail::Sender

Posted by troyt on 2006-06-27 11:04
OS: Windows | Product: ActivePerl | tags: sendmail
Question: 

My perl program uses sendmail. How do I run it on a Windows system?

Answer: 

Sendmail is a mail transfer agent used on many UNIX systems. Perl programs (such as FormMail by Matthew Wright) often use it as a pipe for sending messages. Sendmail is not part of ActivePerl, and isn't typically installed on Windows.

The best approach to use when writing Perl scripts that need to send email and also need to work on both UNIX and Windows systems is to use the Mail::Sender modules instead as this is available on Windows and UNIX. You can install Mail::Sender by running:

  ppm install mail-sender

...at a command prompt. Documentation for using Mail::Sender is available here:

http://search.cpan.org/~jenda/Mail-Sender-0.8.16/Sender.pm