in reply to Sending Mail on a Windows Machine

Well, you certainly cannot assume that Sendmail exists on a Windows machine (frankly, you probably shouldn't assume it exists on Unix either). Instead, you should use one of the many fine mail-sending modules on CPAN (for example Mail::Mailer and Mail::Send, or perhaps Mail::SendEasy by our own gmpassos). All of these work with SMTP. Of course, you will need to know the SMTP server address. Your ISP should be able to provide this, or else you can ask them to install the Microsoft SMTP Service on your box, in which case you can use localhost.

Update: that only addresses the email issue. For other portability issues, look at perlport.

Replies are listed 'Best First'.
Re^2: Sending Mail on a Windows Machine
by jpk236 (Monk) on Feb 23, 2005 at 03:33 UTC
    I tried all three of the CPAN modules you spoke of, but none of them are found when I test the script.

    Can I just throw the SendEasy.pm in the same directory as my script? Would the use Mail::SendEasy; pick up on that file?

    Thanks for your help!

    - Justin
      Actually you'll need to install the whole distribution, which consists of five files and one directory. You need to create a subdirectory called Mail, and copy SendEasy.pm into it, then create a subdirectory called SendEasy under it and put the other files in that. Shouldn't be too hard. Other posts in this thread point to more thorough discussions.