Troubleshooting GMAIL SMTP authentication errors

 

Overview

This article provides information about how to set up the OAuth 2.0 protocol to send mail through Google.

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.

Enabling 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?