'A connection attempt failed because the connected party did not properly respond after a period of time,74.125.195.109:587

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.195.109:587


AND THATS THE CODE:

using SmtpClient smtp = new SmtpClient();

            smtp.Connect("smtp.gmail.com", 587 ,SecureSocketOptions.StartTls);
            smtp.Authenticate(emailFrom,"PASS");
            await smtp.SendAsync(email);
            smtp.Disconnect(true);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source