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.


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


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 History Action Size Date Who Comment
Unknown file formatpatch email-host-down.patch r1 manage 1.2 K 2002-03-07 - 10:54 RichardDonkin Patch for Net.pm
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-03-19 - RichardDonkin
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.