try { MailMessage Msg = new MailMessage(); // Sender e-mail address. Msg.From = new MailAddress(txtEmail.Text); // Recipient e-mail address. Msg.To.Add("info@dhuvara.com"); Msg.Subject = txtSubject.Text; Msg.Body = txtMessage.Text; Msg.IsBodyHtml = true; // your remote SMTP server IP. SmtpClient smtp = new SmtpClient(); smtp.Host = "mail.dhuvara.com"; smtp.Port = 25; Msg.Priority = MailPriority.Normal; smtp.Credentials = new System.Net.NetworkCredential("xxxxxx", "xxxxx"); smtp.EnableSsl = true; smtp.Send(Msg); //Msg = null; lbltxt.Text = "Thanks for Contact us"; // Clear the textbox valuess txtName.Text = ""; txtSubject.Text = ""; txtMessage.Text = ""; txtEmail.Text = "";
SmtpStatusCode
smtp.Host = "mail.dhuvara.com";
smtp.Host = "smtp.live.com";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)