I need to send an email to new members created in the back office. The email will inform the member of their username and password. How would I go about doing this?
Events get fired when new members are created, but it doesn't hold any member info when the event is being fired. Close to useless at that point (here's the work item on Codeplex). Maybe you could rely on other events being fired (eg. on save) and inform the member of their username and password.
An overview of events and how to register for events can be found on the wiki pages starting here.
Don't think the save event will work, when the password is encrypted (which is default now) it will only show the encrypted password. A workaround will be to create a custom usercontrol containing the asp.net createuser control. Then in the CreateUser event read the username and password and use that to send the email.
Greate I should have read the changelog for 4.0.3 I'll update the wiki for events later and thanks for sharing an example for the Event examples wiki....
Email new member when created in the back-office
I need to send an email to new members created in the back office. The email will inform the member of their username and password. How would I go about doing this?
Thanks!!
Mat
Mat,
Events get fired when new members are created, but it doesn't hold any member info when the event is being fired. Close to useless at that point (here's the work item on Codeplex). Maybe you could rely on other events being fired (eg. on save) and inform the member of their username and password.
An overview of events and how to register for events can be found on the wiki pages starting here.
Cheers,
/Dirk
Don't think the save event will work, when the password is encrypted (which is default now) it will only show the encrypted password. A workaround will be to create a custom usercontrol containing the asp.net createuser control. Then in the CreateUser event read the username and password and use that to send the email.
Cheers,
Richard
Good news - a new event was introduced in 4.0.3 to support this (that's why it's so important that you give us feedback, you see ;-)).
:)
Niels
Hi Niels,
Greate I should have read the changelog for 4.0.3 I'll update the wiki for events later and thanks for sharing an example for the Event examples wiki....
Cheers,
Richard
Hi All,
Neils Hartvig mentioned on follwoing link
our.umbraco.org/.../5798-Email-new-member-when-created-in-the-back-office
how to fetch newly created user's "user name" and "password" and send the user an email with these details.
I created same class in App_Code and created a new user in the back office and nothing happend.
Please any one can direct me how to use this class and how this class will be called.
any help would be really appreciated.
is working on a reply...