Send gmail

Send mail using wordpress mail - via gmail.

https://postmansmtp.com/how-to-configure-post-smtp-with-gmailgsuite-using-oauth

Post SMTP. Google API.

1. Create google oauth client

  1. get client secret.
  1. get client key.
  1. add redirect uri - get from wordpress console.
  1. Add keys to the Post SMTP config in WP.
  1. Authorise the client.

4. It may be possible to use alias email addresses as the send address

  1. - if they have been added to the parent gmail address as alias.

In case of Error 400: redirect_uri_mismatch - on oauth sign up

Fix the redirect url - by referencing url presented in the detailed error page (.

Send test mail to check.

In the end - check the to address - to view the mail sent from the system.

Updated: 2026 Aug 19