How to Use the Gmail SMTP Server to Send Emails for Free?
Gmail is well-known for its simple UI and essential features such as search operators and add-ons. Gmail’s SMTP server, on the other hand, maybe used for a lot more.
Try a free trial.
You’ll be able to send emails from your Gmail account using other email clients like Outlook or Thunderbird if you use the Gmail SMTP server. But, more crucially, you can send emails from your WordPress site using Gmail’s SMTP server. For no cost!
This is a fantastic approach to improve the reliability of your WordPress site’s emails without having to pay for a dedicated email sending provider. You may send up to 500 emails each day with Gmail, which is more than enough for most WordPress sites.
We’ll go over everything you need to know about the Gmail SMTP server in this post, including:
How to Find the SMTP Server for Gmail?
Let’s start with the most basic question: what is Gmail’s SMTP server?
You can use the following information to locate the Gmail SMTP server
- smtp.gmail.com is the Gmail SMTP server address.
- SMTP name in Gmail: Your full name
- Your complete Gmail address (e.g. firstname.lastname@example.org) is your Gmail SMTP username.
- Gmail SMTP password: This is the password you use to access Gmail.
- SMTP port for Gmail (TLS): 587
- SMTP port for Gmail (SSL): 465
You might also come across some more popular (but not universal) Gmail SMTP settings when trying to get things set up. If you come across them, here’s how to respond:
- SSL is required: Yes
- Yes, TLS is required.
- Yes, authentication is required / authentication is used.
The secure connection is required / Secure connection is used: Yes, indeed.
How to Configure WordPress to Send emails via Gmail SMTP Server?
Let’s look at how you may send transactional emails from your WordPress site for free using the Gmail SMTP server. Using this approach instead of the usual PHP mail technique will increase the reliability of your site’s emails.
To do so, you’ll need to create a Google app so that you can use the API to connect to the Gmail SMTP server rather than manually entering the SMTP details. There are a lot of steps involved in this process. This is a one-time configuration procedure. That is, once you spend 30-60 minutes setting up your site, it will continue to benefit on its own.
You’ll also require the assistance of a WordPress SMTP plugin in addition to creating a Google app. We’ll use the free Post SMTP Mailer/Email Log plugin, but the free WP Mail SMTP plugin, which also supports the Gmail API, is another good option.
The basic procedure is as follows:
1.Install the plugin Post SMTP Mailer/Email Log (you need to do this first to get the URLs to use in your Google app).
2.Make a Google application. This is the most difficult part of the procedure, but we’ll walk you through it.
3.In the Post SMTP Mailer/Email Log settings, provide your Google app API keys.
4.To ensure that everything is in working order, send a test email.
This lesson focuses on how to use a free Gmail account. You can, however, use a similar procedure to set up your site to send emails through your Google Workplace (G Suite) account.
1. Install and Configure Post SMTP Mailer/Email Log
Install and activate the free WordPress.org Post SMTP Mailer/Email Log plugin to get started. This is what enables you to use the Gmail API/SMTP server to send emails from your WordPress site.
Go to the Post SMTP tab in your WordPress admin after activating the plugin and click the Show All Settings link beneath the huge Start the Wizard button.
Then, on the Message tab, enter your email address and name as the “from” address. If you like, you can use a different email address instead of your Gmail account as the “from” address.
2. Create Your Google App
Now you must develop a Google application. This is how your WordPress site sends emails safely via the Gmail API. Again, this is unquestionably the most difficult step in this process. However, it’s primarily a matter of clicking numerous buttons, and we’ll provide you with all the necessary steps/screenshots.
Establish a Project
To begin, open a new tab and paste this URL into it to navigate to the Google Developers Console. You’ll need to establish a new project there. Google will urge you to start your first project if this is your first time signing into the Developers Console. Alternatively, if you currently have projects, you can start a new one by selecting it from the dropdown in the top-left corner (marked by  in the screenshot below).
Activate the Gmail API
.After you’ve finished creating your project, click the Enable APIs and Services button (shown in the screenshot above).
On the next screen, type “Gmail” into the search box and select the Gmail API result:
Google will now notify you that you must create a consent screen. This is the same type of authorization box that appears when you use Google to register or log in to a website.
You must do this to meet Google’s standards, but you don’t need to be concerned about the information you provide because it will only be used for your own WordPress site.
Set Up Consent Screen by clicking the button:
After you’ve entered all of the required information, click Save at the bottom.
Complete the Credentialing Process for Your Project
Return to the page containing the Add credentials to your project interface section and provide the following information:
- Name – the name of your website (or any other easily remembered phrase).
- Authorized redirect URIs – these can be found in the Post SMTP Mailer/Email Log plugin’s settings (Step #1).
3. Add Gmail App Client IDs to Post SMTP Mailer/Email Log
To complete the configuration, return to your WordPress dashboard and paste the Client ID and Client Secret from the previous step into the Post SMTP Mailer/Email Log settings. After that, remember to save your changes:
By clicking that link, you will be taken through the standard Google permission process (again, just as if you were registering for a site using Google sign-on). However, because you did not submit your app for review to Google, Google will display a notice that your app is “not verified.”
Because this is your own application, you can safely disregard the warning. To continue the authorization procedure, select the option to see advanced options and then click the Go to “yourwebsite.com” (unsafe) link:
You’ll now go to the next step in the process. Make sure you select the Allow your WordPress site to access your Gmail account option. To send emails using the Gmail SMTP server requires certain permissions.
That’s all there is to it! There were quite a few steps, but you’re almost done now.
4. Send a Demonstration Email
Post-SMTP Mailer/Email Log adds a test email option to ensure that everything is working well. This may be found on the main settings page:
You’re done if everything goes well.
Your WordPress site will now use the Gmail SMTP server to send all of its emails. By navigating to Post SMTP Email Log, you can verify that this is the case. This will show you all of the emails that your site sends (as well as any faults that the plugin may encounter):
The Gmail SMTP server enables you to send emails using Gmail and Google’s servers.
A possible solution, in this case, is to configure third-party email programs, such as Thunderbird or Outlook, to send emails through your Gmail account. The default SMTP settings for Gmail are as follows:
- SMTP server address for Gmail: smtp.gmail.com
- SMTP name for Gmail: Your whole name
- SMTP username for Gmail: Your whole Gmail address (e.g. email@example.com).
- Gmail SMTP password: This is the password you use to access Gmail.
- Gmail’s SMTP port (TLS-encrypted) is 587.
- SMTP port number for Gmail (SSL): 465
- Another option is to use Gmail to send transactional emails for your WordPress site. Gmail’s free sending limits are substantially higher than those of other free SMTP services such as SendGrid or Mailgun, at 500 emails per day.
However, if you’re going to do this, you should use the Gmail API rather than the SMTP server details.
While configuring an app to use the Gmail API adds some complexity to the process initially, it is well worth the effort because it provides a reliable and secure method for sending your site’s emails.
Once you’re ready, peruse our collection of Gmail add-ons to boost your email efficiency.
Have any other questions regarding the Gmail SMTP server or how to integrate it with WordPress? Submit your question in the comments section!
if you loved this post, you’re going to adore the WordPress hosting platform offered by Kinsta. Accelerate your website’s performance and receive 24/7 help from our seasoned WordPress team. Our infrastructure is built on Google Cloud and prioritizes autoscaling, performance, and security. Allow us to demonstrate the Kinsta difference! Consider our strategies.