in reply to How do I connect to an SMTP server?

I note that you've commented out your "use strict" statement; that's a bad idea. Ditto for setting 'on_errors => undef' while you're still troubleshooting.

Yes, you could set up your own mailserver - but the very fact that you're asking whether you can or not says that you shouldn't. Setting one up correctly ranges from somewhat complicated to "requires a full-time sysadmin".

Somewhat problematically, the Mail::Server docs specify using a 'LOCAL mail server' (emphasis from the docs); I didn't go into exploring how accurate that is, but if that is really the case, then I suggest that you use a different module - say, Mail::Mailer which tries different methods of getting your mail off the local system and has no problem with using remote mail hosts.


--
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf
  • Comment on Re: How do I connect to an SMTP server?

Replies are listed 'Best First'.
Re^2: How do I connect to an SMTP server?
by neutron (Sexton) on Mar 22, 2009 at 16:29 UTC
    Thanks for the pointers. About Mail::Mailer using different methods, can you elaborate on these or point where I can find more info on this? Who hosts the other remote servers? I'm very interested.

    The same goes for running my own mailserver, I'd like to learn more. Any resources would be great! I'm the first to admit I'm a newb but everyone has a start.
      Your ISP or hosting provider probably provides (and may even require you to use) their own SMTP servers for you to relay your outgoing mail. You'll have to ask them.

      Please see the link for Mail::Mailer that I provided above. Oh, wait - it's here, too! :)

      The remote server would be the one made available by your ISP; you get that information when you sign up with them, and can look it up on their website. As to running your own, there's tons of information on the Web, but be warned - you usually will not be allowed to do so (most ISPs these days block SMTP/port 25 unless you have a business account or something similar with them.)


      --
      "Language shapes the way we think, and determines what we can think about."
      -- B. L. Whorf