Posted on: 5/2/2011 1:37:49 AM | Views : 260

when i tried to send email in asp.net the following error appers

 
this is code
 
private void sendmail() { StringBuilder sb = new StringBuilder(); MailMessage msg = new MailMessage(); msg.From = new MailAddress("webmaster@2seha.com"); //msg.CC.Add("contact@2seha.com"); msg.To.Add(new MailAddress(Email)); msg.IsBodyHtml = true; msg.BodyEncoding = System.Text.Encoding.UTF8; msg.Subject = txt_subject.Text; // sb.Append(txt_subject.Text); sb.Append("--Requester Information--"); sb.Append("<br>"); sb.Append(ListRequesterDate(gv_requester)); sb.Append("<br>"); sb.Append(ListDrugs(gv_drugs)); sb.Append(txt_body.Text); msg.Body = sb.ToString(); msg. ...

Go to the complete details ...