Using the March Beta, I went to register myself and got the following error (thanks for the improved error handling!):
Software error:
Can't call method "mail" on an undefined value at TWiki/Net.pm line 132.
The offending line in Net.pm is:
	 my $smtp = Net::SMTP->new( $mailhost );
At line 130:
	 my $mailhost = &TWiki::Prefs::getPreferencesValue( "MAILHOST" ) || "mail";
I don't see a MAILHOST value in my TWikiPreferences. I can't add one either since I can't register myself unless TWiki can send mail - which it can't since I don't have a MAILHOST...

It would be great if a check was made for $mailProgram in TWiki.cfg being "", which would mean "no email wanted". Alternatively, a new setting: $mail = true/false

-- DavidLeBlanc - 11 Mar 2001

I suspect the issue might arise because

my $smtp = Net::SMTP->new( $mailhost );
does not check that
$smtp
is created properly.

Quite possibly this is because "mail" does not resolve proper on your system.

-- NicholasLee - 11 Mar 2001

"mail" generally resolves to Outbloat on Windows machines if it can be said to resolve, let alone resolve to anything useful smile Clicking on a 'mailto' link does bring up a mail edit window with the 'to' field filled in. Don't know if an entire email msg can be "injected" and sent from a script though. Isn't there a Perl module for SMTP that would either bypass this entirely or do so if the user doesn't indicate a local mail program?

-- DavidLeBlanc - 13 Mar 2001

Yes, Net::SMTP. See NetSMTP.

-- NicholasLee - 13 Mar 2001

This bug should be resolved. See MailHostBug.

-- PeterThoeny - 20 Mar 2001

TopicClassification:
BugResolved
Topic revision: r5 - 20 Mar 2001 - 08:42:30 - PeterThoeny
 
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