Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does mail::sendmail is an independent mail server, means my mail goes out directly from my computer and my ISP can't feel it?
  • Comment on mail::sendmail is it an independent mail server?

Replies are listed 'Best First'.
Re: mail::sendmail is it an independent mail server?
by jlongino (Parson) on Oct 01, 2001 at 11:25 UTC
    You should check out the module documentation on CPAN here. From what I can make of it, you still have to specify a smtp mail server, which will probably belong your ISP unless you have one installed on your local computer or can find another server that allows message relaying (most places don't). Also try using Super Search from this site using the keyword  mail::sendmail

    "Make everything as simple as possible, but not simpler." -- Albert Einstein

      I've never used it, so cave canem and all that, but Net::SMTP (written by Graham Barr) lets you send mail to the destination mail server without requring a local mail server.

      --
      g r i n d e r
        Net::SMTP just submits mail to an SMTP server. If you don't run your own, and don't/can't use your ISP's, you'll need to:
        • Correctly format outgoing mail according to RFC822;
        • Figure out which destination SMTP server to contact for each recipient, based on the MX record for the recipient's domain (you could use Net::DNS for this purpose);
        • Queue mail that is deferred when a non fatal error occurs, such as a temporary DNS failure, or an unreachable SMTP server;
        • Generate a bounce message when a fatal error occurs, such as an unknown recipient;

        All in all this is a lot of work, and difficult to get right. It's much easier to install a MTA on your own machine, open source packages are available for popular platforms.