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
- get client secret.
- get client key.
- add redirect uri - get from wordpress console.
- Add keys to the Post SMTP config in WP.
- Authorise the client.
4. It may be possible to use alias email addresses as the send address
- - 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

