Question
Whenever someone creates an account on my twiki, I recieve their registration e-mail as well. Anyone know how to disable this?
Environment
--
BrianMahoney - 01 Aug 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The feature to inform the
%WIKIWEBMASTER% about registrations is intentional: For public TWikis, it allows the admin to immediate take action if there are spammer registrations.
To disable it, you'd best hack the code at
lib/TWiki/UI/Register.pm: There's a subroutine
_emailRegistrationConfirmations where the mails are sent. Simply return before the mail to the administrator is sent.
If you don't want to touch the code, have a look at
templates/registernotifyadmin.tmpl, which is the template for the mail to the webmaster. Change the
To: address to something different, but keep in mind that if the mail address is invalid, this will fill your error log.
--
HaraldJoerg - 01 Aug 2007
Thanks for your help Harald - I'm getting both the registered user information & their user authentication email. I think what you mentioned was the registered user info, I am completely fine with accepting that. However, I stille should not be recieving other people's authentication e-mails - I'm guessing something is configured improperly?
--
BrianMahoney - 01 Aug 2007
Ok, let's try another one - which, if I understand you correctly, would be even easier and cleaner to solve. Are you referring to the mails which users receive to confirm their registration by entering a numeric code? In that case, simply edit
templates/registerconfirm.tmpl and delete the line beginning with
BCC:.
--
HaraldJoerg - 02 Aug 2007
Thank you so much Harald you are the best!
--
BrianMahoney - 03 Aug 2007
--
BrianMahoney - 03 Aug 2007