From: "Anish Kumar K." <[EMAIL PROTECTED]>
> When I type telnet *********.com 25
> I get like this
> 
>     220 ************.com ESMTP Postfix
>     500 Error: bad syntax
>     500 Error: bad syntax
>     500 Error: bad syntax
>     500 Error: bad syntax
> 
> The Program which I sent you work when I telnet into the system and
> work.. The problem happens when I work in the ACTIVE PERL on windows..
>
> > > 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.

Are you running the Perl script on the same computer as the telnet? 
Using the same user account? Are you 100% sure you don't have a typo 
in the servername in the script?

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
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