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\


In reply to Re: Mail modules on W2K by gellyfish
in thread Mail modules on W2K by Zo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.