i implemented the logic for generating Reset Password Custom Email Template for custom portal user in Apex. once the user reset the password from FrontEnd(PHP Form) using UserName now our code generate the reset password Custom Email Template but this time system also generate the Standard ResetPassword Email Template. how can we prevent the Standard Email Template generated by System. pls help
Best Answer
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_system.htm
System.resetPassword(userObj.id,false)
Setting the second parameter to false will stop the triggering of standard email.