i have created a website
in query form i am sending the details to mail id
this is demo code...i am using like this no error is coming lable is showing the message
but the mail is not going
what else can i do????
MailMessage mail = new MailMessage();
mail.To.Add("bis@gmail.com");
mail.From = new MailAddress("demo@bhavyainfosoft.com");
mail.Subject = "Test mail";
mail.Body = TextBox2.Text;
mail.IsBodyHtml = true;
SmtpClient client = new SmtpClient();
client.Credentials = new System.Net.NetworkCredential("demo@bhavyainfosoft.com", "sdawqe2");
client.Host ="66.198.252.156";
client.EnableSsl = false;
client.Send(mail);
lblmessage.Visible = true;
lblmessage.Text = "Mail sent successfully.";