2

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

  • what method you have used in apex for reset password? If its resetpassword an attribute can be set to achieve this functionality – Mohith Shrivastava May 21 '13 at 11:36
  • Thanks for your response Mohith. i am using System.ResetPasswordResult SR= System.resetPassword(userObj.id, TRUE); this mehthod working properly. apex generated email template successfully but that system also generated standard template that is the problem. – kittu May 21 '13 at 14:22
  • 1
    set the attribute to false...setting it to false will supress standard email i feel – Mohith Shrivastava May 21 '13 at 17:37
3

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.

  • Thanks Mohith your idea working successfully..... Thanks Kittu – kittu May 22 '13 at 6:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.