Jun 6, 2001, 10:33 AM
Post #2 of 6
Apache doesn't come with sendmail. You can purchase sendmail for windows at http://www.indigostar.com/sendmail.htm.
Unless you specifically need sendmail, you can use MIME::Lite.
If you don't have Mime::Lite, you can install it using the ppm manager. Click on the ppm.bat that's in the same directory that Perl is installed and type:
Type Y to confirm. Then, in your program, you can use:
MIME::Lite->send( 'smtp','smtp.yourdomain.com' );
# replace 'smtp.yourdomain.com with your smtp server
my $msg = MIME::Lite->new(
From => 'firstname.lastname@example.org',
To => 'email@example.com, firstname.lastname@example.org',
Subject => 'message subject here',
Data => 'message body here',
$msg->send or die "$!\n";
Hope this helps!