You need to sign in to do that
Don't have an account?

Create User
Hi,
I have created one vf page where i can create a User for my org. When i save a record after entering the required fields(Send EMail Notification functionality to that user is not works).
Is it because i am customizing Create User functionality on vf page?
Because when we create a User from Setup->Manage Users option salesforce automatically sends the email to that particular user.
Cheers,
Devendra S
Before you insert user just set DML Option for sending email
let me know if any issues in it.
Shashi it works well while creating new User....
but what about when user is created and after some time want to reset old one... then how we can write code to regenerate the password...
Thank you!!!
You can use system.resetpassword method
Boolean send_user_email
Could you please show me any examle as you have shown earlier!!!
Got the solution by using,
System.ResetPasswordResult result = System.resetPassword(userId,true);
it will reset the password.