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 209.85.225.109:587
นี้โค้ดส่งอีเมล์ครับ Code (C#)
MailMessage MyMailMessage = new MailMessage();
// MyMailMessage.IsBodyHtml = true;
MyMailMessage.From = new MailAddress("[email protected]");
MyMailMessage.To.Add(mail);
MyMailMessage.Subject = strSubject;
MyMailMessage.Body = strBody;
SmtpClient SMTPServer = new SmtpClient("smtp.gmail.com");
SMTPServer.Port = 587; // 25
SMTPServer.Credentials = new System.Net.NetworkCredential("user", "password");
SMTPServer.EnableSsl = true;
SMTPServer.Send(MyMailMessage);