Do you know where your variables are? | |
PerlMonks |
Re: Mail::Mailer and default value of $server?by footpad (Abbot) |
on Jan 10, 2002 at 21:26 UTC ( [id://137777]=note: print w/replies, xml ) | Need Help?? |
I suppose you could try localhost, but that could be dangerous. In my experience, it's best to be as clear as possible. It might be wiser to store the name of your server in a private configuration file and then load that into a scalar before calling Mail::Mailer. I've used that approach before and it makes things easier to maintain in my book. (YMMV) You may find AppConfig (alt.) helpful. --f
In Section
Seekers of Perl Wisdom
|
|