DataSet ds = new DataSet(); MailMessage mail1 = new MailMessage(); mail1.From = txtemail.Text; ds.ReadXml(Server.MapPath("~/Admin/xml/feedbackmail.xml")); mail1.To = ds.Tables[0].Rows[0][0].ToString(); mail1.Body = "Sender : " + txtemail.Text + "\n" + "Name : " + txtname.Text + "\n" + "Phone : " + txtPhone.Text + "\n" + "\n" + "Sub:" + txtsubject.Text + "\n" + "Body :" + txtmsg.Text; SmtpMail.SmtpServer.Insert(0, "83.245.63.194"); SmtpMail.Send(mail1); CleaContents();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)