Update: The Postman SMTP Plugin has been replaced by the newer Post SMTP Mailer/Email Log. Check out our article on how to setup your site with this newer, more secure email plugin for WordPress.
So you have a WordPress website and the site isn’t sending emails. One of the best plugins to help you do this is the Postman SMTP plugin for WordPress.
This highly popular plugin allows you to send emails from your website using Gmail, SMTP an a host of other email server protocols.
This article will help you setup the Gmail API option.
To setup your WordPress site to send emails using the Gmail API:
Step 1: Install the Postman SMTP Plugin
- Jump to Plugins in the back of your WordPress website.
- Click the “Add New” link at the top of the page.
- In the “Search Plugins” field in the top right, enter “Postman SMTP”.
- In the search results, you will see “Postman SMTP Mailer/Email Log”. Click the [Install Now] button.
- Click the [Activate] button after it has installed.
Step 2: Tell Postman SMTP to use the Gmail API
- Scroll to Settings > Postman SMTP.
- Click the “Show All Settings” link.
- In the “Type” setting, select “Gmail API”.
Step 3: Create API Settings
This part of the process is long BUT stay with it. Follow the bouncing ball and you’ll be fine.
- Ensure you have a Google account. If you don’t have one yet, you can set one up here – Setup a new Google Account.
- Login to your Google account.
- Jump to https://console.developers.google.com/start/api?id=gmail.
- Make sure that the “Create a project” is selected.
- Click the [Continue] button.
- Under the heading “Find out what kind of credentials you need”, click the “API Key” link.
- Give the Key a name, e.g. WordPress Email key.
- Click the [Create] button.
- A screen will show stating “API key created”.
- Click the [Close] link.
- In the “Credentials” tab, click the [Create Credentials] drop down.
- Select OAuth client ID.
- In the “Credentials” screen, select the “Web application” option.
- Enter a name for the “Name” setting, e.g. Website Emails.
- Copy these back into the Gmail API screen. NOTE, when you copy and paste a setting a new field shows below the field that you just pasted into. Ignore this new field.
- Click the [Create] button.
- A screen will show with the Client ID and Client Secret. These are the settings that you copy and paste back into the Postman SMTP settings.
- Copy the Client ID and Client Secret from this screen back into the Postman SMTP settings.
- Click [Save Settings].
Step 4: Link Postman SMTP to the API Settings
Now that you have the ID’s in your WordPress website, you will need to grant permission to Google to allow Postman SMTP to talk to it.
- Click the link “Grant permission with Google” at the top of the page.
- Click the [Allow] button.
Step 5: Test the Settings
- Jump back to the Postman settings page.
- Click the “Send a Test Email” link.
- Check your emails to confirm that the email was sent successfully.