Subscribe to RSS  |  Advertise on this Blog

  • HOME
  • ABOUT
    • RESUME
Alberto Matus
  • SERVICES
  • CONTACT
  • HOME
  • ABOUT
    • RESUME
  • SERVICES
  • CONTACT
June 5, 2020  |  By ajMatus In Linux Tips, Open Source, Technology Tips, WordPress

Configuring Post SMTP with Gmail Using oAuth

alberto-matus-post-smtp

This is one goes for those looking to quickly have their contact forms up and running in WordPress. Post SMPT does a wonderful job of making things work out of the box rapidly. I’ve often used it in many WordPress sites and so here are the basic steps that are required to get it running.

  1. Go to the plugins section of WordPress, search, install, and activate Post SMPT.
  2. Once installed go to the Post SMPT settings and click on “Start the Wizard”
  3. You will want to enter the Gmail address that will be used to send the emails. The Name simply refers to what name will appear when the contact forms are being used.
  4. Set the Outgoing Mail Server Hostname to smtp.gmail.com this normally comes up automatically. Then hit next.
  5. The next section really depends on your hosting provider, but for the most part SMTP – gmail.com:587 should work. Most hosting providers allow for Gmail access these days so the port should work. If not you’ll want to get in touch with your provider and see what can be the best option for you.
  6. Once you click next, you’ll want to go to the Google API Console that is associated with your Gmail. Here you will create a project, accept the terms and conditions, select your country, and chose the option for offers by Google.
  7. Once you agree and continue you’ll have to wait a few seconds. Then select go to credentials.
  8. Next, you will be prompted with a “Add credentials to your project” page, but simply click on the “client ID” link.
  9. Click on the Configure Consent Screen button.
  10. Unless your Gmail is a domain that is linked with a GSuite you will be able to select the Internal type of app. Otherwise, you must select External.
  11. Enter a name for your Application, your Email address, and the Homepage link for the website. Finally, click on save to the bottom.
  12. Select “Credentials” to the left of the screen, Create Credentials, and Choose OAuth Client ID.
  13. Select the Application Type, this will be Web Application. Give it a name, and enter the Authorised JavaScript origins, and redirect URI’s.  The latter two can be found on the last step you stopped in WordPress, a sample can be seen in the second screenshot. This will generate Your Client ID and Secret which can be on the third screenshot below.
  14. Once you have entered your Client ID & Secret in Post SMTP you can select next, then you will be prompted how you want to be notified when emails fail to deliver. I simply select by email.
  15. That should sum up the basic configuration. Click finish.
  16. Ensure you grant permissions to the application with your Gmail. Then you can do a Test, if it’s successful you should get the success message along with the email to the inbox you selected.

Happy Sending & Receiving Emails!! 🙂

Gmail oAuth Post SMTP

Article by ajMatus

Leave your comment Cancel Reply

(will not be shared)

WELCOME

Hello, and welcome! I'm Alberto - a Cyber Security & Digital Forensics professional specializing in Digital forensics, Incident Response & Vulnerability Assessment. I hold a Master's degree in Cybersecurity with a concentration in Digital Forensics from the University of South Florida and a Bachelor degree in Information Technology from the University of Belize. Through this blog I hope to share tips, information about cybersecurity, cybercrime, digital forensics, open source technologies, business, and a bit of my amazing country. For those interested in any of my services please feel free to contact me using any of the associated contact details on this blog.

SEARCH

ARCHIVE

  • October 2022 (1)
  • July 2021 (2)
  • November 2020 (2)
  • October 2020 (1)
  • September 2020 (2)
  • August 2020 (2)
  • July 2020 (6)
  • June 2020 (6)
  • April 2020 (5)
  • February 2020 (1)
  • November 2019 (2)
  • October 2019 (1)
  • September 2019 (1)
  • June 2019 (1)
  • May 2019 (1)
  • November 2018 (6)
  • September 2018 (3)
  • August 2018 (4)
  • February 2018 (1)
  • January 2018 (3)
  • December 2017 (1)
  • October 2017 (5)
  • September 2017 (1)
  • December 2016 (2)
  • November 2016 (4)
  • October 2016 (1)
  • September 2016 (2)
  • August 2016 (5)
  • July 2016 (2)
  • June 2016 (2)

CALENDAR

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Oct    

RECENT POSTS

  • Capture
    WordPress Empty template: Index Friday, 7, Oct
  • Belize – Benque Viejo to San Ignacio Town Drive Tuesday, 6, Jul
  • alberto-matus-digital-piracy
    An Overview of Digital Piracy Thursday, 1, Jul

REMOTE WORK

Remote work is my preferred way or working as I have a home office set up where all the magic happens. This method allows me to work with businesses, organizations, and all brands across the globe. I can manage projects via my own management applications or your own internal project management app. Any calls and meetings can be done through whatever tools fits your business, and I’m flexible to work on your time zone.

ON-SITE

Not every job assignment can be done via remote working methods, and so if it requires me to be on-site for the duration of the work then this can be done based on agreements or contractual work. I prefer doing these types of consultancies or hands-on types of work on the weekends but I am flexible enough depending on the terms. I am also open to traveling outside of Belize. All further afield work requires accommodation and travel expenses.

RETAINER

Sometimes clients are looking for long term partners that share a closer connection to their visions and goals. As such I am open to retainers. A retainer hires me for a certain amount of hours per month at a discounted rate. These discounted rates are usually between 10%-20% off depending on the contractual agreements.

Alberto - open source | technology | belize -Matus

Copyright ©2020. All Rights Reserved

en_USEnglish
en_USEnglish