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
- Set mail host to something invalid, when using Net::SMTP
- Try to register as a new user
- 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