r2 - 19 Mar 2002 - 09:04:00 - RichardDonkinYou are here: TWiki >  Codev Web > NetSmtpFailsToConnect
Tags:
, create new tag

Bug: Net::SMTP code fails when it cannot connect to mail host

The Net.pm module's Net::SMTP code fails when it cannot connect to a mail host (e.g. because an Internet link is down).

Test case

  1. Set mail host to something invalid, when using Net::SMTP
  2. Try to register as a new user
  3. You get an error saying that the $smtp variable was undefined, causing a method to fail.

Environment

TWiki version: Dec2001
TWiki plugins:  
Server OS: Windows 2000
Web server: Apache 1.3
Perl version: Cygwin perl 5.6.1
Client OS:  
Web Browser:  

-- RichardDonkin - 07 Mar 2002

Follow up

Fixed.

Fix record

See the attached patch for Net.pm, this generates a reasonable error message in this case.

-- RichardDonkin - 07 Mar 2002

Committed to CVS for TWikiAlphaRelease

-- RichardDonkin - 19 Mar 2002


Category: TWikiPatches
Topic attachments
I Attachment Action Size Date Who Comment
elsepatch email-host-down.patch manage 1.2 K 07 Mar 2002 - 10:54 RichardDonkin Patch for Net.pm
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo