A
amerar
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'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!