hello ..
I am sending email using gmail but i got error .
My Code is ...
MailMessage mail = new MailMessage();
mail.To.Add("devjangramca@gmail.com");
mail.From = new MailAddress("devjangramca@gmail.com");
mail.Subject = "Email using Gmail";
mail.Body = "Hi,This is testing mail";
SmtpClient smtp = new SmtpClient();
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
mail.IsBodyHtml = true;
smtp.Host = "smtp.gmail.com";
smtp.Port = 587;
NetworkCredential cred = new System.Net.NetworkCredential("jasmingill190@gmail.com", "********");
smtp.Send(mail);
Error Is
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.125.129.108:587 Go to the complete details ...