From:                   Aman  Thind <[EMAIL PROTECTED]>
> Just use "shaw" instead of "shaw.ca" as in :
> 
> $smtp = Net::SMTP->new('shaw')||die("my woes are never ending :(");
> 
> You are supposed to use only the name of the mail server.
> shaw.ca is an invalid argument to Net::SMTP as you will find if you
> use  : print "$!"; after trying to connect to the server as you do.

There is nothing "syntacticaly" invalid about "shaw.ca". You can (and 
probably should) use the full DNS name of the server.

Of course if the name doesn't exist or the server doesn't accept SMTP 
(port 25) connections "new Net::SMTP" fails.

If you use just the name (without the domain) you just ask the DNS to 
find the server in whatever default domains are set for your 
computer. 

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]

Reply via email to