Tags:
archive_me1Add my vote for this tag create new tag
, view all tags
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
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2001-03-20 - PeterThoeny
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.