---
title: "How to connect a Gmail account to Smartlead with SMTP"
description: "Connect a Gmail or Google Workspace mailbox to Smartlead over SMTP and IMAP using a Google app password and 2-Step Verification."
url: https://helpcenter.smartlead.ai/en/articles/4-how-to-connect-a-gmail-account-to-smartlead-with-smtp
collection: "Email Disconnection Errors"
updated: 2026-11-17
language: en
---

# How to connect a Gmail account to Smartlead with SMTP

Connect a Gmail or Google Workspace mailbox to Smartlead over SMTP and IMAP using a Google app password and 2-Step Verification.

You can connect a Gmail or Google Workspace mailbox to Smartlead with SMTP and IMAP. You sign in with a Google app password, not your normal Gmail password.

Use this when you can't or don't want to connect with Google OAuth.

## Before you start

-   You need 2-Step Verification turned on in your Google account. Google only lets you create an app password once it is on.
    
-   On a Google Workspace account, your admin may have turned IMAP off. Ask them to check **Apps → Google Workspace → Gmail → End User Access** at admin.google.com, and turn on **IMAP Access**.
    

![](https://staticfiles.gleap.io/ghelparticle/NekW0f5QtG4mjziROkoaeaHLlaiXkROYpVmp93ZnWl2Gm949aOWfZUOtvgZJ49AW26VVV5sDdeS.png)

## Step 1: Turn on 2-Step Verification

1.  Open your Google account at myaccount.google.com.
    
2.  Click **Security** in the left menu.
    

![](https://staticfiles.gleap.io/ghelparticle/SPraGhYBClKbY8fGSnfZswUbVgVDK0or0wOvROgBMVexH0GWuhS7QJP6QqJgKNjPNxz5n2tEXDg.png)

3.  Under **How you sign in to Google**, click **2-Step Verification**.
    

![](https://staticfiles.gleap.io/ghelparticle/BYa1r2X4dw1x8AhYgQKD5ZDg2lzsUCekcULuTsmmWuUnGQG9MyFHnpAcunYm3WMlhUGLEtGur8g.png)

4.  If it is off, click **Turn on 2-Step Verification**.
    

![](https://staticfiles.gleap.io/ghelparticle/xPSlSDULFKScyCM28leEe6Odw4Yy2hd6POKBfUQIuc9Fs3Rs2uLujqR6xmkhNJwWPnzvJHF2VFK.png)

5.  Enter your Google password, then add and verify your phone number.
    
6.  Click **Turn On**.
    

You see a checkmark next to 2-Step Verification on the **Security** tab.

![](https://staticfiles.gleap.io/ghelparticle/MUkFsUGLHoR4wLH3sgJwlrM2dkNcc0ew49QcqNfsh3d4ZzwdNehsfoVCk6OhogHHy9ZiO4FijV9.png)

## Step 2: Create an app password

1.  Go to myaccount.google.com/apppasswords. You can also search for **App passwords** in your Google account.
    

![](https://staticfiles.gleap.io/ghelparticle/CukQMd1uGOmR0KXxgXB8oDbs9UbTHWov2ZoHhsK2YtcPpjHu62dY6VIBvvvhSSVsYmgrj6AUjIJ.png)

2.  In **App name**, enter a name such as Smartlead.
    
3.  Click **Create**.
    

![](https://staticfiles.gleap.io/ghelparticle/FIGKmA73Euo75QjlUZfvQq4dCdqlUnTqloVnSUmflXi4a6NTXQUPVsHuF0wb8JcmGaLYm7SAKGm.png)

4.  Copy the 16-character password. Google shows it only once.
    

![](https://staticfiles.gleap.io/ghelparticle/H5y8J1rqkU3kGqACRf0Jf1ufRXX463ASAWYqFPiSx95yhwuGvnOs9piMFEcnRbNGYHNzulsxBvc.png)

## Step 3: Add the mailbox in Smartlead

1.  In Smartlead, go to **Sender Accounts**.
    
2.  Click **Add** (or **Connect Mailbox** if you have no mailboxes yet).
    

![](https://staticfiles.gleap.io/ghelparticle/OpxAAmzFdTYrMLPzLuzI7nA6pViivf4tTSGyM3eqmVkT4gEj4W5MzW3EJOfATL9AohgwIw5ioIK.png)

3.  Choose **Smartlead's Infrastructure → SMTP**.
    

![](https://staticfiles.gleap.io/ghelparticle/hJKsQltpqT4IBjXzyUDoEroVR1iojhtOggoPiuW56azqhTxE1WGcy3WVZvFoOAAMzmDNTt5kkTY.png)

4.  Enter your Gmail address and the app password from Step 2.
    
5.  Enter Google's server settings:
    

-   **SMTP Host:** `smtp.gmail.com`, **SMTP Port:** `465`, SSL on
    
-   **IMAP Host:** `imap.gmail.com`, **IMAP Port:** `993`, SSL on
    

![](https://staticfiles.gleap.io/ghelparticle/Wph0ld962vPZyzp8hkKqkievXMTBrgWp9bqk9bu5l8jx4kxlWsZU5Xc78pbVs0wq969EhP2xoqR.png)

6.  Click **Verify Email Account**, then **Save**.
    

Smartlead signs in to SMTP and IMAP with these details. The mailbox is added only if both logins work.

![](https://staticfiles.gleap.io/ghelparticle/XZ7DhO9p6BkUIgrUeNmAdRhSfxfDX83qJZO8cCrY1WvrstU5L9ppI4lonzCXW5kXHjmOTZsX7hR.png)

## Good to know

-   **Saving checks the login again.** Each time you save the mailbox's settings, Smartlead tests the SMTP and IMAP login.
    
-   Prefer not to use an app password? Connect with Google sign-in instead. See the Google OAuth article below.
    

## If something goes wrong

### Error 534-5.7.9 Application-specific password required

You entered your normal Gmail password. Turn on 2-Step Verification, create an app password, and use that instead.

Still stuck? Contact support from the chat in your Smartlead dashboard.

## Related articles

-   [Google Error - Invalid login: 534-5.7.9 Application-specific password required.](https://helpcenter.smartlead.ai/en/articles/42.md)
    
-   [Gmail/Google oAuth 1 Click Authentication](https://helpcenter.smartlead.ai/en/articles/18.md)
    
-   [How to Connect Your Mailbox to Smartlead](https://helpcenter.smartlead.ai/en/articles/446.md)
