setup smtp gmail

How to setup SMTP server in Gmail to send emails at no cost at all?

Google mail (Gmail) is used by billions of people all around the world. Its often considered as a safe and trustworthy choice for communicating between clients may be because of it’s clean and user-friendly interface. Till date there are number of useful features launched by Gmail which made life of people tremendously easy. But Gmail has more than just features to offer to people. Yes, you heard it right and here we are talking about Gmail SMTP server.

Sending, receiving, and relaying emails between two parties is done using SMTP, or Simple Mail Transfer Protocol. SMTP is a protocol that allows an app to transfer email from one server to another off course over the internet. To put it simply, an SMTP email is a message sent through an SMTP server.

When you use the Gmail SMTP server, you can use other email clients, such as Outlook and Thunderbird, to send emails from your Gmail account. In addition to that, you can also send emails directly from your WordPress site using Gmail’s SMTP server, that also without spending a penny. Isn’t it amazing!?

If you run a WordPress site, then you must know that you can easily improve its email reliability in this way without needing to spend money on dedicated email services. There is more than enough room for almost all WordPress websites using Gmail’s 500-email-per-day limit.

Gmail’s SMTP feature is probably already well known to you by now. The free Gmail SMTP server is a fast, cheap, and easy way for small scale companies with low mail volume to get started. The Gmail SMTP server isn’t without limitations, and we’re referring to more than just the sending limits.

Here in this article, we will dig deep into the current topic and hopefully by the end of the article you will be having all the essential knowledge about smtp Gmail.

SMTP servers: how do you set them up?

There are a various ways you can use SMTP to send an email:

  1. Using free open-source Postfix SMTP server solution you can develop a SMTP server.
  2. Use a service which provides hosted SMTP service to setup an SMTP relay server (it’s free until you reach a certain sending volume)
  3. Even better, you can install your own Gmail SMTP server

Here are the details you need to locate the Gmail SMTP server:

  • You can access the SMTP server for Gmail at smtp.Gmail.com
  • The Gmail SMTP name is your full name
  • A user’s full Gmail address (e.g. mydemo[email protected]) is used as the SMTP username for Gmail.
  • The password that you use to log in to Gmail is none other than your Gmail SMTP password
  • (TLS) port 587 for Gmail SMTP
  • Gmail’s SMTP (SSL) port is 465

Before we proceed, it’s important to note that the SMTP Gmail server requires both SSL (Secure Sockets Layer) and TLS (Transport Layer Security) ports. It’s crucial to have them! Furthermore, you must not overlook the security features of SMTP Gmail, such as the secure connection and the google authentication that enable you to log into the SMTP Gmail server.

Using Gmail’s SMTP server to send emails from WordPress

Here is how you can send free transactional emails using Gmail’s SMTP server. Following are the steps you need to take in order to configure them:

  1. Post SMTP Mailer/Email Log must be installed first (this gives you the URLs to use in your Google app). WordPress.org offers a free plugin called Post SMTP Mailer/Email Log. Activate it and you’re ready to go. In order to send emails through the Gmail API/SMTP server, you must configure your WordPress site this way.

In your WordPress dashboard, navigate to the Post SMTP tab and click the Show All Settings link under the big Start the Wizard button after activating the plugin. After that, go to the Message tab and enter the “from” address and name. The choice of whether you want to use Gmail address only or some different email address is up to you. Select Gmail API in the Type drop-down menu on the Account tab.

The Authentication box below will appear with additional options after you click this option. The next step requires the Authorized JavaScript origin and Authorized redirect URI details from this page.

  • It’s time to create your Google app. This is how you can securely send emails via the Gmail API from your WordPress site. This part is the most complicated, but we’ll help you through the process. You can go to the Google Developers Console by copying this URL into a new tab: https://console.developers.google.com/apis/dashboard

A new project needs to be created there. In the Developers Console, Google will prompt you to create a project if this is your first time accessing it. See below to locate the “create new project” tab.

As soon as your project is created, click on Enable APIs and Services button.

You will see a screen where you can search for “Gmail” and choose the Gmail API result. Once on the full API page, click Enable. The Gmail API interface should now appear. Click on the Create Credentials button located on the top right corner. To continue, click the What credentials will I need? Button present on bottom of the page.

A consent screen will now pop up prompting you to set it up. The authorization screen looks similar to what you see when you sign up or login using Google. The purpose of this step is to fulfill Google’s requirements. However, you don’t need to worry about the information that you input, as you’ll only be using it on your WordPress site. By clicking Set Up Consent Screen, you will be able to set up the consent screen. You should be able to configure an OAuth consent screen within a new tab (keep the original browser tab handy, since you’ll need it later). Select External under User Type. After that, click Create.

Next, you will need to enter some basic information about your site. At the bottom, click Save when you have finished adding the information. Now, add credential information to your project. Click Refresh after you have added everything to the add credentials page. The Refresh button will then display Create OAuth client ID. Click that to continue and then click Done to complete the process. After clicking Done, you will find an OAuth 2.0 Client ID section in the Credentials tab of the project.

It is now just a matter of looking up two pieces of information: Client Id and Client secret.

This information is crucial for the next step, so keep it accessible.

  • To configure Post SMTP Mailer/Email Log, you will need to add your Google app API keys.

You will need to paste the Client ID and Client secret from the previous step in the Post SMTP Mailer/Email Log settings in the WordPress dashboard to complete implementation. Once you have made your changes, save them.

After that, you should be prompted to grant permission with google. You will then be taken to the Google authorization process which will be quite familiar to you. You will, however, see a notification/warning saying “This app is not verified” since you didn’t submit it to Google for review. It is safe to ignore this warning since it is your own application. To continue the authorization process, click the Go to “yourwebsitename.com” (unsafe) link after selecting the Advanced settings option. Ensure that your WordPress site has access to your Gmail account by choosing the Allow access to your Gmail option. Emails can only be sent via the SMTP server of Gmail with these permissions only.

  • Check that everything is working by sending a test email. A test email can be sent using Post SMTP Mailer/Email Log in order to verify compatibility. From your main settings page, you can access this option. Your test email can be entered here. Test email address is the one to which you want to send the message. You should now see a success message in the plugin’s settings. And in your email inbox, a test email should also appear.

If all goes well, Hurray! Your SMTP Gmail setup is complete.

Leave a Comment

Your email address will not be published.