How do I use Gmail as an SMTP?
Make sure that your Google account has two factor authentication turned off, and the “allow less secure apps” setting turned on. Note: Sometimes it takes a day for Google to allow access after changes are made. Check Email Preferences to ensure you’re using the correct settings.