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:
- Google authentication and authorization
- Enabling the OAuth 2 API to use with your WordPress Mail SMTP plugin
Please note that DreamHost support is unable to assist with this custom configuration.