If I enter smtp.gmail.com, it doesn't work. If I ping the IP address from smtp.gmail.com and enter that in the server address, it works fine. Obviously that's just a short term fix since googles smtp server address changes from time to time.
Also, even with the IP address directly used, it...