in reply to Mail modules on W2K
Mail::Mailer is not available via PPM for ActivePerl so I guess that you must have either downloaded the tarball of MailTools and either install it manually (if you have nmake) or copied the files to the appropriate place - if you did that you will also need to have copied the smtp.pm,mail.pm,rfc822.pm and sendmail.pm into (if you have a similar setup as I do) C:\Perl\site\lib\Mail\Mailer. The Mail::Mailer::smtp (which you will almost certainly be using on windows as neither 'mail' or 'sendmail' will work :) also requires Mail::Utils but this is part of MailTools - unfortunately this does not work on Windows because it uses getpwuid which is not available there.
I would suggest that you use Net::SMTP until I have written the patch for MailTools that will overcome this problem.
(Sorry this is a bit patchy - I was going through the steps as I was typing :)
Update: I sent a patch to Mark Overmeer so that Mail::Mailer will work on Windows - as :
--- Util.pm~ Thu Feb 7 18:36:47 2002 +++ Util.pm Thu Feb 7 19:08:20 2002 @@ -226,7 +226,7 @@ $mailaddress ||= $ENV{USER} || $ENV{LOGNAME} || - getpwuid($>) || + eval { local $SIG{__DIE__}; scalar getpwuid($>); + } || "postmaster"; ##
/J\
|
|---|