Question
I have had TWiki running for almost 2 months. New user registration has worked fine and email notices have been generated and sent to new users. Today the email notification stopped working and following error message is part of the oopssendmailerr page:
ERROR: Can't send mail, missing recipient
The registration page (renamed from *Pub page) requires email as one of the fields. However, TWiki DOES setup a personal profile page and the email address / link works there.
I have registered a number of new users from different computers... all have same problem.
I have not changed any of the relevant files in recent days and my sendmail appears to be working.
______
Further problem...
Last night the change notification email did not work... I have this scheduled to run once a day.
Does this look like a sendmail problem at server level?
______
November 5, 2001:
I have determined that sendmail is working at my host server.
When I run mailnotify from command line, I get following:
Checking TWiki.Main
- Changed topics since 31 Oct 2001 - 19:19:
TWikiUsers, bla bla
- Sending mail notification to:
example@yourPLEASENOSPAM.company,
ewart.newton@bluesky360PLEASENOSPAM.com, bla bla
* ERROR: Can't send mail, missing recipient
- End Twiki.Main
Obviously there IS A RECIPIENT but TWiki does not seem to recognize this. Again, this is same error message I get when I register new user even though user profile topic is created and email address is valid.
______
Thanks for help!!!!
- TWiki version: September 2001
- Web server: Unix
- Server OS: Apache 1.3.9
- Web browser: IE 5
- Client OS: Win98
--
EwartNewton - 01 Nov 2001
Answer
Are you getting extra commas at the end of the recipient list? Some sendmails are funny like that.
--
MartinCleaver - 06 Nov 2001
______
There are NO commas at end of recipient list. This also happens for new users when they register... an error message tells them that system is unable to send email because there is no recipient.
So my system at present does NOT properly take email addresses and use them for To: in email messsages.
--
EwartNewton - 06 Nov 2001
>
ERROR: Can't send mail, missing recipient
This error message is produced by
TWiki::Net trying to send and e-mail using Perl's
Net::SMTP. It looks like that module was not installed previously, and your TWiki notification stopped working when someone installed the module. TWiki tries to use
Net::SMTP, and if it can't find it, reverts back to
sendmail.
You could spend more time debugging, but in your case you simply could force TWiki to use
sendmail instead of
Net::SMTP: Comment out line 38 of
TWiki/Net.pm:
eval {
# $useNetSmtp = require Net::SMTP;
}
<verbatim>
-- Main.PeterThoeny - 10 Nov 2001</verbatim>