+ Start a Discussion
SuAkSuAk 

send email visualforce page

I have a visual page which merges two records. I want to send email once it merges the records. How do I do it ?

Thanks!
SalesFORCE_enFORCErSalesFORCE_enFORCEr
Either you can write the logic in your controller to send the email after merging is completed OR you can send notification from a trigger on delete and update. Because merge is nothing but delete of one record and update of another.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_merge_statements.htm