Author: obynono | Posted on: 11/8/2009 4:25:01 PM | Views : 502

hi, here i wrote an aspx page to send mail, but it always givesan error.it never sends.
hereis the code fragment:
protected void btnsend_Click(object sender, EventArgs e) { string name = txtname.Text; string phone = txtphone.Text; string email = txtemail.Text; string message = txtmessage.Text; string subject = txtsubject.Text; try { System.Net.Mail.MailMessage mailmessage = new System.Net.Mail.MailMessage(); mailmessage.From = new System.Net.Mail.MailAddress(email); mailmessage.Subject = name + "( " + email + "," + phone + ")"; mailmessage.To.Add(new System.Net.Mail.MailAddress("obinnahenree@yahoo.com")); mailmessage.Priority = System.Net.Mail.MailPriority.High; mailmessage.IsBodyHtml = false; mailmessage.Body = ...

Go to the complete details ...