Skip to main content

How to Configure Gmail SMTP Server

If you're building a website, web app, or CRM system, chances are you need to send emails — for contact forms, password resets, notifications, or marketing. One of the most secure and simple ways to do this is by using Gmail SMTP.



In this guide, you'll learn:

  • What Gmail SMTP is

  • How to set it up (step-by-step)

  • Common errors and how to fix them

  • When not to use Gmail SMTP

  • How to get expert help if needed


đŸ“Ŧ What Is Gmail SMTP and Why Use It?

SMTP (Simple Mail Transfer Protocol) is the technology behind how emails are sent online.

Gmail’s SMTP server allows you to send emails from your application, website, or desktop client (like Outlook or Thunderbird) using your Gmail account — securely and reliably.

Gmail SMTP is perfect for:

  • Contact forms on websites

  • Web app notifications

  • Password reset emails

  • Sending emails from Outlook, Thunderbird, etc.


🔧 Step 1: Prepare Your Gmail Account for SMTP Use

Before your app can send emails via Gmail, you need to allow secure external access.

1.1: Enable 2-Step Verification

  1. Go to myaccount.google.com

  2. Click Security in the left menu

  3. Scroll to “Signing in to Google”

  4. Click “2-Step Verification” and follow the steps

This adds extra security and is required to generate an App Password.

1.2: Create an App Password

Once 2FA is enabled:

  1. Go back to the Security tab

  2. Click App Passwords

  3. Select:

    • App: Mail

    • Device: Other (name it e.g., “My CRM”)

  4. Click Generate

You’ll get a 16-character password. Copy and save it — you’ll need it for SMTP setup.


📡 Step 2: Configure Gmail SMTP in Your App or Email Client

2.1: Gmail SMTP Server Settings

SettingValue
SMTP Serversmtp.gmail.com
Port (TLS)587
Port (SSL)465
EncryptionTLS or SSL
Auth RequiredYes
UsernameYour Gmail address
PasswordYour App Password

2.2: Set Up Gmail SMTP in Outlook or Thunderbird

  1. Go to Account Settings

  2. Add new or edit existing account

  3. Enter:

    • Name: Your name or business

    • Email: Your Gmail address

    • Password: Your App Password

SMTP settings:

  • Server: smtp.gmail.com

  • Port: 587 (TLS) or 465 (SSL)

  • Authentication: Yes

Send a test email to confirm.


2.3: Set Up Gmail SMTP in a Web App or CRM

  1. Go to SMTP/Email Settings in your app

  2. Use the server details from above

  3. Username: your Gmail

  4. Password: your App Password

  5. Test and save

If setup is correct, the test email will arrive in seconds.


🛠 Common Gmail SMTP Errors & Fixes

Error MessageCauseSolution
535 Authentication failedWrong password or no App PasswordGenerate and use correct App Password
Timeout / Cannot connectPort blocked or wrong settingsUse correct port & check firewall
Google blocked sign-inGoogle flagged the login attemptAllow access via your account settings
Daily limit exceededGmail sending limit reachedWait 24 hours or use a pro SMTP
Relaying deniedIP not authorizedUse correct credentials & settings

📉 Gmail SMTP Sending Limits

Account TypeDaily LimitMax Recipients
Free Gmail500 emails500 per email
Google Workspace2,000 emails2,000 per email

Note: Going over limits may block your account temporarily.


🧠 Advanced Options for Google Workspace Users

If you're using a Google Workspace (G Suite) account, you can also use:

1. Gmail SMTP Relay Server

  • Server: smtp-relay.gmail.com

  • Authentication: Optional (if IP whitelisted)

  • Ports: 25, 465, 587

  • Limit: 2,000 emails/day

2. Restricted Gmail SMTP

  • Server: aspmx.l.google.com

  • Port: 25

  • Auth: Not required

  • Can only send to Gmail / Workspace accounts


đŸšĢ When Gmail SMTP Is Not Enough

Avoid using Gmail SMTP for:

  • Cold outreach

  • Bulk email campaigns

  • Newsletters

Why?

  • Strict sending limits

  • Deliverability risks

  • Possible account blocks

✅ Use professional SMTP providers like:

  • SendGrid

  • Amazon SES

  • Mailgun

  • Brevo (Sendinblue)

  • Saleshandy

These are designed for high-volume sending and better inbox placement.


👨‍đŸ’ģ Need Expert Help? Let Visernic IT Company Handle It

Don’t want to deal with technical SMTP issues?

Let Visernic take care of it.

✅ Why Choose Visernic?

  • Certified engineers for SMTP setup & troubleshooting

  • Gmail, Google Workspace, SendGrid, Amazon SES & more

  • SPF, DKIM, DMARC configuration for better deliverability

  • Support for Laravel, WordPress, Node.js, CRMs

  • Ongoing IT support for startups & enterprises

📩 Contact Visernic


✅ Final Thoughts

Gmail SMTP is a secure, simple way to send emails through apps, websites, and email clients.

By following this guide, you can:

  • Set up your Gmail securely

  • Generate an App Password

  • Send emails via SMTP

  • Fix common SMTP errors

Need help? Contact Visernic and let the pros handle your email infrastructure.

Popular posts from this blog

āφāϧুāύিāĻ• āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟ: āϏāĻŽ্āĻ­াāĻŦāύা, āϚ্āϝাāϞেāĻž্āϜ āĻāĻŦং āϏāĻŽাāϧাāύ

āĻŦāϰ্āϤāĻŽাāύ āϏāĻŽāϝ়ে āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟ āĻļুāϧু āĻāĻ•āϟি āĻĒ্āϰāϝুāĻ•্āϤিāĻ—āϤ āĻ•াāϜ āύāϝ়, āĻŦāϰং āĻāϟি āĻāĻ•āϟি āĻ•্āϰāĻŽাāĻ—āϤ āĻĒāϰিāĻŦāϰ্āϤāύāĻļীāϞ āĻļিāϞ্āĻĒ। āύāϤুāύ āĻĒ্āϰāϝুāĻ•্āϤি, āωāύ্āύāϤ āϟুāϞāϏ āĻāĻŦং āĻ…āϟোāĻŽেāĻļāύ āĻĒ্āϰāĻ•্āϰিāϝ়া āφāĻŽাāĻĻেāϰ āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āϤৈāϰি āĻ“ āĻĒāϰিāϚাāϞāύাāϰ āĻĒāĻĻ্āϧāϤিāĻ•ে āϏāĻŽ্āĻĒূāϰ্āĻŖāϰূāĻĒে āĻĒাāϞ্āϟে āĻĻিāϚ্āĻ›ে। āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟেāϰ āĻŦāϰ্āϤāĻŽাāύ āϧাāϰা āĻŦāϰ্āϤāĻŽাāύে Agile Methodology , DevOps , āĻāĻŦং Continuous Integration/Continuous Deployment (CI/CD) āĻĒāĻĻ্āϧāϤি āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āωāύ্āύāϝ়āύেāϰ āĻ—āϤি āĻŦাāĻĄ়িāϝ়ে āĻĻিāϝ়েāĻ›ে। āĻāϰ āĻĢāϞে āĻ•োāĻŽ্āĻĒাāύিāĻ—ুāϞো āĻĻ্āϰুāϤ āϏāĻŽāϝ়ে āĻŦাāϜাāϰে āĻĒāĻŖ্āϝ āύিāϝ়ে āφāϏāϤে āĻĒাāϰāĻ›ে āĻāĻŦং āĻŦ্āϝāĻŦāĻšাāϰāĻ•াāϰীāĻĻেāϰ āϚাāĻšিāĻĻা āĻ…āύুāϝাāϝ়ী āϏāĻĢāϟāĻ“āϝ়্āϝাāϰে āĻĒāϰিāĻŦāϰ্āϤāύ āφāύāϤে āĻĒাāϰāĻ›ে। āĻŽূāϞ āϚ্āϝাāϞেāĻž্āϜāϏāĻŽূāĻš āϝāĻĻিāĻ“ āĻĒ্āϰāϝুāĻ•্āϤিāĻ—āϤ āĻ…āĻ—্āϰāĻ—āϤি āĻšāϝ়েāĻ›ে, āĻ•িāĻ›ু āϚ্āϝাāϞেāĻž্āϜ āĻāĻ–āύāĻ“ āĻŦিāĻĻ্āϝāĻŽাāύ: āϏ্āĻ•িāϞ āĻ—্āϝাāĻĒ – āĻ­াāϞো āĻĄেāĻ­েāϞāĻĒাāϰ āĻĒাāĻ“āϝ়া āĻ•āĻ িāύ āĻšāϝ়ে āĻĒāĻĄ়েāĻ›ে। āϏিāĻ•িāωāϰিāϟি – āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āϝāϤ āĻŦেāĻļি āχāύ্āϟাāϰāύেāϟ-āύিāϰ্āĻ­āϰ āĻšāϚ্āĻ›ে, āϤāϤāχ āϏাāχāĻŦাāϰ āĻুঁāĻ•ি āĻŦাāĻĄ়āĻ›ে। āϟেāĻ•āύোāϞāϜি āĻ“āĻ­াāϰāϞোāĻĄ – āĻĒ্āϰāϤিāĻĻিāύ āύāϤুāύ āĻĢ্āϰেāĻŽāĻ“āϝ়াāϰ্āĻ• āĻ“ āĻ­াāώা āφāϏāĻ›ে, āϝেāĻ—ুāϞো āĻŦেāĻ›ে āύেāϝ়া āĻ•āĻ িāύ। āϏāĻŽ্āĻ­াāĻŦāύাāĻ—ুāϞো āĻāĻ–āύāĻ•াāϰ āϏāĻŽāϝ়ে AI, Machine Learning , āĻāĻŦং Cloud Computing āϏāĻĢāϟāĻ“āϝ়্āϝাāϰ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟে āύāϤুāύ āĻĻিāĻ—āύ্āϤ āωāύ্āĻŽোāϚāύ āĻ•āϰেāĻ›ে। AI-āϚাāϞিāϤ āĻ•োāĻĄ...

Why Custom Web Development Outperforms Templates in 2025

In an age where digital presence defines business success, your website is more than just a digital brochure — it’s your brand's first impression, your primary sales tool, and a cornerstone of customer engagement. While templates offer a quick and easy way to get online, businesses aiming to stand out in 2025 are turning to custom web development — and for good reason. 1. Tailored to Your Brand, Not Someone Else’s Templates are built for mass use, which often results in a cookie-cutter feel. A custom-built site, on the other hand, reflects your unique identity, goals, and user journey — setting your brand apart from competitors. 2. Performance That Scales As your business grows, so do your technical demands. Custom websites are built with scalability in mind — optimized for speed, clean code, and seamless integration with tools like CRMs, analytics, and third-party APIs. 3. SEO-Optimized From the Ground Up Unlike many templates that are bloated with unnecessary code, custom ...