Troubleshooting GMAIL SMTP authentication errors

 

Overview

Google's security settings block sending mail via SMTP through its servers unless you enable OAuth 2.0 authentication. This article points you to Google's and the WP Mail SMTP plugin's official instructions for enabling OAuth 2.0 (DreamHost support can't assist with this custom configuration).

Background

Many websites use PHP to send email via SMTP. For example, you could create a custom mail form or use a WordPress SMTP plugin:

Unfortunately, Google's security settings do not allow you to send mail via SMTP through their servers unless you explicitly allow it. The following instructions show you how to do that with OAuth 2.0 instead.

How do I enable the OAuth 2.0 protocol?

You can enable OAuth 2.0 to authenticate connections. See the following pages for more information:

Please note that DreamHost support is unable to assist with this custom configuration.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?