Re: Perl/Mail Suggestion....
- From: "amerar@xxxxxxx" <amerar@xxxxxxx>
- Date: 28 Nov 2006 12:58:10 -0800
amerar@xxxxxxx wrote:
Hi all,
I've just built myself a new server and installed Linux. I currently
have a mailserver rnning Red Hat 9.0 and I'm using Postifx.
My existing server runs just fine. I want to bring my new server
online to test the mail portion without taking down my current server.
I have set up Squirrelmail and that seems to deliver mail just fine.
However, when I try and run a Perl script which uses the Net::SMTP
module, I receive this error:
"Can't call method "mail" on an undefined value at
/prod/scripts/send.pl line 208."
Here is a clip of my code:
$smtp = Net::SMTP->new("nytelife");
$smtp->mail("mail.chicagorsvp.com");
$smtp->to($email);
$smtp->data();
That is the code that currently runs on the Red Hat 9.0 existing
server. I am wondering if this is a problem due to hostnames or
something. I'm just lost and have no idea where to look.......
Can anyone help or offer a suggestion?
Thanks!
I have another question:
In line #2: $smtp->mail("mail.chicagorsvp.com");
Where is that mail server definition defined? I'll need to change the
name on the new server so there is no conflict......
Thanks!
.
- References:
- Perl/Mail Suggestion....
- From: amerar@xxxxxxx
- Perl/Mail Suggestion....
- Prev by Date: Re: Replacement in a string with a function call.
- Next by Date: Re: Bareword errors?
- Previous by thread: Perl/Mail Suggestion....
- Next by thread: Re: Perl/Mail Suggestion....
- Index(es):
Relevant Pages
|
|