We’re rewarding the question askers & reputations are being recalculated! Read more.
3

As per VF developer guide it would be FindDup <apex:commandButton action="{!URLFOR($Action.Lead.FindDup, Lead.Id, null, true)}" value="FindDup" />


2

You have several logical mistakes, syntax errors, and negative practices in your code, which is very messy and will not in the state that you have posted it compile. You are sending email in a loop, and what's worse you're sending it based on a list that you do not clear after sending it. This is your core problem, and it's why you get duplicate emails. ...


Only top voted, non community-wiki answers of a minimum length are eligible