Well $! is supposed to yield the current error string so my guess with what you've provided is that your SMTP connection worked but somewhere prior to the first line you attempted a file open, write, read etc... and it failed. If you want the code you've provided to determine if the SMTP connection failed or not you'll have to write it something like this:
$smtp = Net::SMTP->new($MAIL{recive_mailserver})or die "ms, $MAIL{recive_mailserver}, $!";
Hope this helps.
Trevor J. Joerges
http://members.home.net/tjoerges
--------------------------------------
$_=q;$TTnzyUUifyIIz!;;s;z;xdl;g;
y;x;b;;y;B-x;A-w;s;y;y; ;;print;
--------------------------------------
-----Original Message-----
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
Sent: January 16, 2001 07:08 AM
To: Kristofer Wolff
Cc: perllist
Subject: Re: there is a SMTP error i do not understand..
Kristofer Wolff wrote:
>
> hi, i buiold up a new SMTP conection:
>
> $smtp = Net::SMTP->new($MAIL{recive_mailserver});
> print "ms, $MAIL{recive_mailserver}, $!";
>
> and it returns :
> ms, ns2.internet-shop.net, No such file or directory
>
> what means "No such file or directory" in this Case ?
Who knows. My guess is you are going to the nameserver instead of the mail
server with a name like ns2....
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.todbe.com/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
