18 March, 2023

What is Gmail SMTP? How to set it up for WordPress

Quick summary: SMTP Gmail (Simple Mail Transfer Protocol) is a protocol for sending and receiving email, and it helps you send large files that ordinary email does not allow. To configure Gmail SMTP for WordPress, follow 4 steps: (1) install the Post SMTP Mailer/Email Log plugin; (2) create a project in the Google Developers Console, enable the Gmail API and create an OAuth Client ID/Secret; (3) paste the Client ID and Client Secret into the plugin and grant Google access; (4) send a test email to check that it works.
To make sending documents and contracts to partners at home and abroad easier, most companies now use Gmail SMTP for their email. So what exactly is the SMTP protocol? And how do you configure Gmail SMTP? In this article, MONA Media will answer these questions for you.

What is the Gmail SMTP protocol?

What is the Gmail SMTP protocol?

SMTP stands for Simple Mail Transfer Protocol, a system that receives and transmits the data in a user's email. It only works with email on devices that are connected to a network. The devices that do this job are called SMTP machines, and servers are connected through TCP port 25, an Internet network port.

Many clients tell MONA that they can send and receive email normally even though they know nothing about an SMTP server or SMTP configuration . That is completely TRUE because the mailbox still belongs to you. But what if you need to send large files or videos?

Email services normally set a limit on file size. If the file you want to send is close to or over that limit, it is hard or even impossible to send. In that case you need to configure SMTP – a system that shortens the transfer time and lets you send much larger data.

How the SMTP system works

Whenever your company sends an email, if you have set up SMTP, the system uses that email address and sends the message to the SMTP server. On receiving the signal, the SMTP server talks to the DNS server to find the root domain in the Hostname.

After these steps, the system checks whether the user's information and the email information match. If they do, your company can send or receive emails with larger attachments.

To prevent the SMTP server from failing to reach the DNS server, any signal that gets no response is passed on to intermediate servers. After receiving the original signal, the system passes it along through other servers until it reaches the original server. The system keeps trying until a signal reports that it has expired or can no longer be used.

Benefits of using Gmail SMTP

Benefits of Gmail SMTP Besides helping your company reach customers effectively, Gmail SMTP offers other notable benefits:
  • Higher delivery rates than ordinary email sending.
  • Setting up Gmail SMTP means you don't need to set up a server (if you're using a VPS).
  • Your emails are less likely to be marked as spam by Gmail.
  • Lower email marketing costs, with no fee for email registration.
  • Easy to integrate with other applications and websites.
  • Gmail SMTP offers strong security.

How to find the Gmail SMTP server

Before you start setting up Gmail SMTP, you need to find a Gmail SMTP server:
  • Gmail SMTP server address: smtp.gmail.com.
  • Gmail SMTP name: The user's full name.
  • Username: The user's Gmail address.
  • Password: Your Gmail login password.
  • TLS port: 587.
  • SSL port: 465.
You can also refer to the following general Gmail SMTP settings:
  • Requires SLL: Choose Yes.
  • Requires TLS: Yes.
  • Requires authentication / Use authentication: Yes.
  • Requires secure connection / Use secure connection: Yes.

A quick, simple guide to configuring Gmail SMTP

To set this up, you need to create a Google app that connects to the Gmail SMTP server through the API and a WordPress SMTP plugin. There are many popular SMTP plugins; you can use Post SMTP Mailer/Email Log or WordPress Mail SMTP. The process is as follows:
  • Step 1: Install the Post SMTP Mailer/Email Log plugin on your website
  • Step 2: Create a Google app (this is the most complicated part of the process)
  • Step 3: Add the Google API to the installed plugin
  • Step 4: Send an email to check that it works
Note: the guide below uses a free Gmail account. If you use a Google Workspace account, you can configure your site in the same way.

Step 1: Install and configure Post SMTP Mailer/Email Log

First, install and activate the free Post SMTP Mailer/Email Log plugin for WordPress. In the plugin's dashboard, choose Show All Setting below Start the Wizard Next, switch to the Message tab to set the sender address and name. You can use any email address, or your own. Finally, go to the Account tab and choose Gmail API. You'll see an Authentication option below. Note this information down for the next steps. configure Post SMTP Mailer

Step 2: Create a Google app

This Google app lets your website send email securely through the Gmail API. It is the most complicated part of setting up SMTP

Create a project in the Google API console

Open a new tab and copy the URL (https://console.developers.google.com/apis/dashboard) into the Google Developers Console to create a new project. If this is your first project, the Developers Console will tell you. If you already have some older projects, click [1] to create another project. Create a project in the Google API console

Enable API Gmail

After the project is created, click the Enable APIs and Services button as shown in the image below. Then search Gmail and select Gmail API. Select Gmail API Click the Enable button as shown in the image below Enable the Gmail API

Create credentials

After enabling the Gmail API, the system takes you to the Gmail API's own screen. Click the Create Credentials button to create credentials. Create credentials for the Gmail API Fill in the credentials form with the following information:
  • Which API are you using? Gmail API
  • Where will you be calling the API from? Web browser (JavaScript)
  • What data will you be accessing? User data
Finally, click on the What credentials do I need? Select What credentials do I need

Set up the consent screen

This is the same authorization consent screen you see when you use Google to sign up or sign in to a website. Google requires it. The information is only used for your own WordPress website, so don't worry about what you enter. Click Set Up Content Screen Click set up consent screen The browser opens a new tab for configuration OAuth content screen. In the section User Type, choose External and press Create Configure the OAuth consent screen Fill in the basic information for your site (only you can see this, so don't worry about it) Set up the consent screen Once you've filled in everything, click Save to finish.

Add the login credentials to the project

Go back to the tab Add credentials to your project and fill in the following:
  • Name: Website name
  • Authorized JavaScript origins: in the Post SMTP Mailer/Email Log plugin (Step 1)
  • Authorized redirect URIs: in the Post SMTP Mailer/Email Log plugin (Step 1)
Add the login credentials to the project Select Refresh –> Create OAuth client ID then Click Done. After you click Done, you'll see a section for OAuth 2.0 Client IDs. Click the project you just created. Open OAuth 2.0 Client IDs Then you need to find two pieces of information:
  • Client ID
  • Client secret
Save both for the next step. Save the Client ID for the Web application

Step 3: Add the Gmail app's Client ID to the plugin

To finish the setup, go back to the SMTP plugin, paste information Client ID, Client secret saved above into the matching fields. Then click Save Changes. Add the Client ID to the plugin A Google permission request will then appear. Grant the plugin access with Google Click Grant permission with Google, the screen shows a warning This app isn’t verified. Click Go to …. (unsafe) Skip the warning to continue to SMTP For authentication to go through, make sure you select Allow, which lets your WordPress site access your Google account to send email through Server Gmail SMTP.

Step 4: Send an email to check that it works

To make sure the setup has no errors, choose Send a Test Email in the plugin Post SMTP Mailer/Email Log. Send a test email from the plugin Enter the email content and the recipient address Enter the test email content Then check your inbox. That is the full answer to the question "What is Gmail SMTP" and the guide to configuring SMTP in WordPress quickly and easily. We hope the information we have shared MONA Media is useful to you. Good luck with your setup!

Gmail SMTP hits its 500-emails-a-day cap when your site starts getting steady orders

web app cham tran gioi han smtp gmail
An app with automated selling will quickly hit the 500-emails-a-day cap of a personal Gmail account.

A customer opens your app and places an order. The screen spins and says the order was received, but fifteen minutes later the OTP never reaches their phone. The shop is open and orders keep coming in, but notifications go silent. The customer leaves. This is a familiar scene once your customer volume starts to grow and your notification emails get stuck.

You might blame a slow network or a system bug, but the culprit is often the free email account itself. Gmail limits a regular account to 500 emails a day, and a Google Workspace account to 2,000 a day. That is plenty for internal communication between departments. But it becomes a bottleneck that chokes your revenue when used for website running cost software that runs automatically.

Since 2016, across more than 14,000 projects we have delivered for clients, one thing has been clear. Gmail SMTP only suits small websites sending a few dozen emails a day. We send automated transactional email to clients through MONA Cloud. As soon as an app sends OTPs or order confirmations to hundreds of customers, it hits the 500 cap and the sending channel is locked for a full 24 hours. Borrowing a personal mailbox as a notification server looks like it saves money, but it breaks the flow of revenue into your business to save a few trivial coins.

Sending notifications through a self-built server also tends to land in spam because the IP address has no reputation. That is risky, and it is why developers usually move to a third-party platform rather than carry the load on a self-managed server. Our advice: if your site only collects a handful of leads a week, Gmail is fine. But if your system has member sign-ups or automated selling with a steady stream of orders and OTP codes, never put your business at risk on a trial account.

We send automated transactional email to clients with MONA Mail

mona mail gui mail giao dich tu dong
MONA Mail is built to handle the core of automatic notification email and OTP delivery for business software.

With automated software, one second of delay is a customer abandoning the cart for someone else. Customers today won't wait longer than the blink of an eye for a confirmation email, and slow means lost customers. To solve the notification problem across many sites and apps, we use MONA Mail as our main transactional email channel.

You get 3,000 free emails a month, more than enough for a startup. Domain verification is simple, with a single DKIM record using selector mona1 and RSA 2048 encryption. We return queued while an email is waiting in line, and we never report delivered until the receiving server has actually logged a successful receipt. You can see the status of each email through webhook settings instead of guessing whether it arrived. Everything is clear. The word delivered is often misunderstood in most of the projects we take over: people assume that sent means done, when the email hasn't yet reached the customer's mailbox.

If something goes wrong temporarily, our server retries automatically after one second, five seconds, twenty-five seconds, two minutes and then ten minutes before reporting failed. Compared with foreign providers like Resend (we checked on 19/09/2026 and its standard plan costs 20 USD), with us you pay in VND, get VAT invoices, and your servers and all your data stay in Vietnam. Behind it is a system with AI calls straight through MCP, a Vietnamese-language support line on call, and MONA specialists ready to debug.

Our 85% client retention comes from having real people behind the service. Our straight advice: don't use MONA Mail if you plan to send millions of marketing emails, because the platform is still in testing and uses a shared IP range. That is our honest advice. This system exists only to handle transactional notification emails and secure OTP flows for your company's own operating software.

A manifesto for growing together

MONA is a software, digital transformation and AI transformation company, but above all, MONA is a B2B service company that benefits directly from this: THE MORE SUCCESSFUL VIETNAMESE BUSINESSES BECOME, THE MORE MONA BENEFITS, while a declining, slow market with weak technology is exactly what kills MONA's future business opportunities. So, more than anyone, MONA wants you to succeed, and MONA actually steps in to help you succeed.

And AI transformation is the key to that success for all of us.

MONA

Fix the transactional email bottleneck today

A blocked notification flow doesn't just annoy customers, it stops revenue coming in. MONA Mail is free for 3,000 emails per month, with webhooks for the status of every email. Try it at https://monamail.vn/ first. It takes about 5 minutes. Just click and you're done.

Try MONA Mail with 3,000 free emails Call 1900 636 648

FAQ

What is a Gmail SMTP server, and what do you need to know to set it up?
The Gmail SMTP server address is smtp.gmail.com, TLS port 587, SSL port 465. When configuring, set Requires SSL, Requires TLS and Requires Authentication all to Yes. The username is your Gmail address and the password is your Gmail login password.
Why set up Gmail SMTP for WordPress?
Setting up Gmail SMTP improves email delivery, helps you avoid being marked as spam, supports sending large files, removes the need for your own server when you use a VPS, and integrates easily with other applications.
About The MONA Group: Founded in 2016, with more than 200 staff, MONA has delivered 14,000+ projects with an 85% client retention rate. MONA provides website design, full-scope SEO, custom software and AI automation solutions for businesses. Consulting hotline: 1900 636 648. Explore MONA AI Agent suite and MONA SEO services.
MONA has a podcast: listen instead of readingEpisodes on AI, automation & SEO for Vietnamese businesses
Nghe ngay
About the author

CEO & Founder · The MONA

Founder of The MONA, who built a services company of 200+ staff with 14,000+ projects delivered. Khánh Hùng shares how he thinks about building systems that run themselves, automating a business, and the real lessons from delivering projects at MONA.

Views 1,5K
Rate this article 4,8/5 · 12 ratings

Professional website
design services

Own a website with a beautiful, 100% exclusive design and a lifetime warranty, with the ability
to expand features flexibly as your business grows, starting today!

Contact Mona

    MONA có riêng một Người "Bạn Thân" cho bạn - Người Account sẽ đồng hành, hỗ trợ, hướng dẫn, đặt đồ ăn cho bạn mãi mãi, từ đây về sau!
    MONA will never sell your information or send you spam
    Đội MONA tư vấn hệ thống quản lý giáo dục trực tuyến
    Hỏi đáp giáo dục 4.0
    Tạo cuộc hẹn miễn phí với MONA để giải đáp và tư vấn mọi thắc mắc về giải pháp số hoá ngành giáo dục
    Thời lượng cuộc hẹn
    45 Phút
    Ngày và giờ
    Thứ 2, ngày 25 tháng 12, 2023
    [9:30 - 10:15]

      Chọn ngày và giờ
      Khung giờ
      Back
      Hãy cho MONA biết bạn là ai
      0:00