Send email on manual add user

Permalink
Hi:
I need to make a site event, that sends a email with username and password to new members added by the Admin user.

Thanks

fjhadd
 
jshannon replied on at Permalink Reply
jshannon
I was just helping someone do something similar (though on import) yesterday. He came up withhttp://pastie.org/4245489 .

If you're ok with code, that's a good starting point.

Note that the user_created event (which you want to plug into rather than tweaking the admin controller) doesn't give you the password (it's already been hashed), so he's duplicating the "lost my password" functionality. Normally, you could call a model method, but he couldn't find it, so you've got to go the sloppy not-very-mvc-route of using sql.

James