Extension talk:New User Email Notification

Add a Name to mail reciptients listed in $wgNewUserNotifEmailTargets
First of all i'd like to say "thanks" to all who work(ed) on this extension: it's really cool.

Today i set up a mailadress on my mailserver which distributes incoming mail to several other adresses. I put it into $wgNewUserNotifEmailTargets in my wiki so the new user notification is sent to it. Unfortunally The Email body says now "Hello forwarder@mywikisystem.net ...".

Maybe it is possible to use an associative array instead of the simple array, something like this:

$wgNewUserNotifEmailTargets = array ( "E-Mail forwarder member" -> "forwarder@mywikisystem.net", "anothermailforwarder member" -> "forwarder2@mywikisystem.net" )

This way, even for adresses in $wgNewUserNotifEmailTargets The mail body could contain a better title.

--Rootkid 08:49, 5 September 2008 (UTC)

Users not getting confirmation email
I have a user that isn't able to get the confirmation email and says he's tried it a few times; however, when I make a dummy account I do get the email. Can you tell me if there's a way to add and email confirm users directly on my end or what might be going wrong? --Pschloss 14:37, 19 February 2009 (UTC)

Add users e-mail address to the notification message
Hey, in most cases you probably don't need that, and it could even be problematic regarding the users privacy. But for certain cases, like me using a MediaWiki for an collaborative online course, I want to get the users e-mail address as soon as they register at the course wiki. Therefore I applied following changes:

In NewUserNotif.class.php I changed: 89        private function makeMessage( $recipient, $user ) { 90                global $wgSitename, $wgContLang; 91                return wfMsgForContent( 92                         'newusernotifbody', 93                         $recipient, 94                         $user->getName, 95                         $wgSitename, 96                         $wgContLang->timeAndDate( wfTimestampNow ), 97                         $wgContLang->date( wfTimestampNow ), 98                         $wgContLang->time( wfTimestampNow ) 99                 );

to this: 89        private function makeMessage( $recipient, $user ) { 90                global $wgSitename, $wgContLang; 91                return wfMsgForContent( 92                         'newusernotifbody', 93                         $recipient, 94                         $user->getName, 95                         $wgSitename, 96                         $wgContLang->timeAndDate( wfTimestampNow ), 97                         $wgContLang->date( wfTimestampNow ), 98                         $wgContLang->time( wfTimestampNow ), 99                         $user->getEmail 100                 );

Now you can put another parameter into the body text of the notification mail (MediaWiki:Newusernotifbody):

I thought I'll put this here in case somebody else needs it.

Best regards, --Bin!johnny 22:54, 27 February 2009 (UTC)