function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dolly BasantaniDolly Basantani 

how to override the Lost Password Template on customer portal via Apex code?


I am having a template set for Lost Password Teplate field in customer portal which sends email to the candidate when he/she hits the forgot password link.
My requirement is to override this template and set a custom template via Apex an custom object.
I have created a custom object that has email content in it and i am using that object in the apex class to generate the mails.

the problem is when the user is hitting the click button salesforce sends two mails for forgot password, one which is mentioned in the customer portal i.e. the standard template and other one which is custom template created via apex.
I am unable to override the standard template.

Can Somebody help me with the same.
Go into the visualforce page for lost password, and remove the link that sends the lost password email. 

Insert a link that calls your apex code / custom lost password link.