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.
|
|---|
| 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 | |
by drench (Beadle) on Mar 22, 2009 at 23:46 UTC | |
by oko1 (Deacon) on Mar 23, 2009 at 03:58 UTC |