Sending an email alert from Custom functions

Sending an email alert from Custom functions

I've noticed that workflow rules will not allow the preferred sequence of actions to follow (Custom function then email alert I needed!) so I need to send an email alert from a custom function, can you tell me the correct syntax please ?

Update : I wrote the email code into the custom function so an answer is only required for anyone else's future queries relating to this !