On Thu, 16 Sep 2004, Anish Kumar K. wrote:

> This is the complete program
> 
> use warnings;
> use strict;
> use Net::SMTP;
> my $ServerName = "*********.com";
> # Connect to the server
> my $smtp = Net::SMTP->new($ServerName);
> die "Couldn't connect to server" unless $smtp;
> 
> 
> Error Message : Couldn't connect to server at smtp.pl line 7.

Ok, so is this server reachable?

What happens if you do a --

    telnet *********.com 25

-- ? Does it respond? Can you hit enter a couple of times, then type 
"HELO" to establish a SMTP conversation? 

If not, then the script is faithfully reporting to you that the SMTP 
server you want to use does not seem to be available.

If you can connect, and issue commands, then something else is going on.
 


-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to