TWiki Version: 20010301 beta.
OS: Windows NT Workstation 4.0sp6
Net.pm has a platform dependency error at line 129:
my $mailhost = &TWiki::Prefs::getPreferencesValue( "MAILHOST" ) || "mail";
This presumes that the environment variable MAILHOST is available in the environment or that some string "mail" has meaning to the host OS. This is not the case in Windows.
However, when I changed the above line to:
my $mailhost = "mail.myhost.com" # not the real one obviously,
# but similar to my isp's mail host address
it worked!
I suggest the fix for this is YACV (Yet Another Config Variable). If Twiki.cfg::MAILHOST is "" then check the env then if it's "", fail soft and continue (currently things like registration fail if MAILHOST is undefined as it is on Windows). Otherwise, use the value in MAILHOST.
--
DavidLeBlanc - 16 Mar 2001
Actually MAILHOST is a Preference value, which is set in
TWikiPreferences.
If there is a great need above this, it might be possible to add a TWik.cfg default variable as well.
--
NicholasLee - 17 Mar 2001
The MAILHOST entry was actually missing in
TWikiPreferences of the Beta release. I made the entry and it will be in the next Beta.
At the same time I changed the variable name of the outgoing mail server from
MAILHOST to
SMTPMAILHOST. This is in anticipation of a future incoming mail host variable like
POPMAILHOST. Commited to
TWikiAlphaRelease.
--
PeterThoeny - 17 Mar 2001