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
It seems like the servers for some of the users on my wiki aren't allowing through the confirmation email. Is there anything that can be done about this from the wiki side of things? --Pschloss 18:06, 24 July 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)