MailMessage email=new MailMessage();
email.To=to.Tex t;
email.From=from .Text;
email.Subject=s ub.Text;
email.Body=msg. Text;
try
{ SmtpMail.Send(e mail);
SmtpMail.SmtpSe rver="localhost ";
}
catch
{}
this is the code i used. but didnt work. is there anything more to b added