Custom code to send EMail

I'm looking for custom code to send email on an form event afterfieldupdate.
Anyone know the syntax/code setup to send out emails from custom code ?