Custom Function - Magic Button

Custom Function - Magic Button

Hi, 


I would like to create a button that will trigger 3 actions:


1. Change the status of the lead

2. Update one field

3. Send an email template  


Any ideas on how I can make this happen?  I believe I need to create a custom function, but I am not very good with doing that :(