if you are developing a webpart or any sharepoint customized feature,and you would like to send an email through your webpart or custom code,you can achieve this by 2 ways:
1) use normal .net classes to send email (System.Net.Mail namespace).
2) use below code:
SPUtility.SendEmail(SPContext.Current.Web, false, false,
"firstname.lastname@example.org", "E-mail title",
this code will use the configuration of your sharepoint installation (SMTP server configuraiton),in the central administraiton tool.
the benefit of the second choice,you don't need to store any other configuration for your SMTP server on your code,this code will directly use the sharepoint configuration and free your mind of SMTP configurations, if the sharepoint is configured propely and send email notification (throught workflows for example),then you code will work as well :).
hope this trick will help.