:?: Pla help me.
I am trying to send email. i am working on asp.net 2.0
I used coding for it
MailMessage msg = new MailMessage();
SmtpClient MailObj = new SmtpClient("www.yahoo.com");
msg.From = new MailAddress("ValidId@yahoo.com");
msg.To.Add(new MailAddress("myid@yahoo.com"));
msg.IsBodyHtml = false;
msg.Subject = "This is subject";
msg.Body = "This is body";
MailObj.Timeout = 400;
MailObj.Send(msg);
msgtxt.Text += "message send";
Coading is right but i have got error The operation has timed out. I have increased timeout value.