Id did it like this (.Net 4.0):
private bool Send(){
bool result = false;
MailMessage mail = new MailMessage();
try{
GetAdressesTo(ref mail);
GetAdressesCc(ref mail);
mail.From = new MailAddress(txtbox_mailfrom.Text);
mail.Subject = txtbox_mailsubject.Text;
mail.Body = txtbox_mailtext.Text;
SmtpClient smptclient = new SmtpClient(ConfigurationSettings.GetConfigurationSetting("MailServer"));
smptclient.Send(mail);
result = true;
}
catch(Exception ex){
}
finally{
mail.Dispose();
}
return result;
}
Hope this helps.