I am attempting to write a mailing script using Net::SMTP. My code looks
something like this:

$smtp = Net::SMTP->new("foohost");
$smtp->mail("david");    #This is line #53 in my program

And I get the following error:

Can't call method "mail" on an undefined value at C:\mailit.pl line 53.

So, I take it that the Net::SMTP->("foohost") did not establish a SMTP connection.
However, I can do this from the command line:

$ telnet foohost 25
220 foohost Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at
 Thu, 23 Jan 2003 09:47:19 -0500
HELO
250 foohost Hello [xxx.xxx.xxx.xxx]
...
...

So, I know that there is a smtp daemon running on foohost, and that the
machine I am running on can communicate with it. I would like to try other
hosts (like my personal smtp server), but port 25 is locked out by our company's
firewall, so I can use internal systems.

Is there anything I can try to see where this error might be coming from?

BTW, I have no problems with Net::ftp.

--
David Weintraub
[EMAIL PROTECTED]
BusinessEdge Solutions

WARNING: [8 line legal mumble-jumble that my company wants me to append
to  each and every email I send out, but I don't feel like typing out each
time since they're forcing me to use webmail to access my account, and I
have no way of creating boiler template sigs]

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to