Tags:
create new tag
, view all tags

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
Unknown file formatpatch email-host-down.patch manage 1.2 K 2002-03-07 - 10:54 RichardDonkin Patch for Net.pm
Topic revision: r2 - 2002-03-19 - RichardDonkin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.