Thanks for your prompt reply.
I am using following code it works fine on my development machine but when i host on remote server it's not working
it is not deliver the mail to recepient.
the web server configure as per article
http://www.codeproject.com/Articles/15807/Easy-SMTP-Mail-Using-ASP-NET-2-0
MailMessage mm = new MailMessage();
mm.From = new MailAddress("username@gmail.com");
mm.To.Add("shatrughna@live.in");
mm.Subject = "Hello";
mm.Body = "<h3>New Material Request From " ;
mm.IsBodyHtml = true;
smtp.Host = "smtp.gmail.com";
smtp.EnableSsl = true;
System.Net.NetworkCredential NetworkCred = new System.Net.NetworkCredential(); NetworkCred.UserName = "user@gmail.com"; NetworkCred.Password = "xxxxxxxxx"; smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 587;
smtp.Send(mm);