Gmail and Google Workspace

Connect with an app password over SMTP and IMAP: smtp.gmail.com and imap.gmail.com, step by step.

During the beta, use an app password

The Google button in the Connect dialog only works for Google accounts on our approved test list while the beta runs. Any other account sees “Access blocked”. The app password route below works for every Gmail and Google Workspace account and takes about five minutes.

Before you start

  • You need to be able to sign in to the Google account you want to send from.
  • A free @gmail.com (or Yahoo) address is fine for trying the app. For real cold outreach, use Google Workspace or Microsoft 365 mailboxes on a separate sending domain with SPF, DKIM and DMARC set up (see the DNS guide).
  • Google only offers app passwords when 2-Step Verification is on. If your company uses Google Workspace and you cannot turn it on, ask your Workspace admin.

1. Turn on 2-Step Verification

  1. Open your Google Account security page

    Go to myaccount.google.com/security (opens in a new tab) and sign in as the mailbox you will connect.

  2. Turn on 2-Step Verification

    Under “How you sign in to Google”, open 2-Step Verification and follow the prompts. A phone number or the Google app is enough.

2. Create an app password

  1. Open the app passwords page

    Go to myaccount.google.com/apppasswords (opens in a new tab). You may need to sign in again.

  2. Name it and create it

    Type a name you will recognise, such as Go4Lead, and click Create.

  3. Copy the 16-letter password

    Google shows it once, in four groups of four letters. Copy it now; you will paste it into Go4Lead in the next part, without the spaces. This password only works for mail apps and you can revoke it at any time from the same page.

No “App passwords” option?

2-Step Verification is still off, your account uses Advanced Protection, or your Workspace admin only allows security keys. Turn 2-Step Verification on, or ask your admin.

3. Connect it in Go4Lead

  1. Open Email Accounts and click Connect

    In Go4Lead, go to Email Accounts and click Connect. Skip the Google button and use the Any provider (SMTP / IMAP) form.

  2. Fill in the sending details

    SMTP (sending)
    Sender nameThe name recipients see, e.g. Maya Patel
    From emailYour full Gmail or Workspace address
    SMTP hostsmtp.gmail.com
    Port587
    UsernameYour full email address
    PasswordThe 16-letter app password
    Use TLS/SSL (port 465)Leave off for port 587. The connection is still encrypted (STARTTLS).
  3. Open Inbox access (IMAP) and fill it in

    IMAP lets Go4Lead pick up replies for the Unibox and run warm-up. Do not skip it.

    IMAP (replies and warm-up)
    IMAP hostimap.gmail.com
    Port993
    Username and passwordLeave empty to reuse the SMTP ones
    Use TLS/SSL (port 993)Leave on
  4. Click Connect SMTP account

    Go4Lead tests the sending connection before saving. When it succeeds, the account appears in the list.

Prefer port 465?

That works too: port 465 with Use TLS/SSL turned on.

Next steps

If it does not connect

  • Username and password not accepted: you used your normal Google password. Use the app password instead.
  • Connection timed out: check the host and port. 587 needs TLS/SSL off; 465 needs it on.
  • It worked, then stopped: changing your Google password revokes app passwords. Create a new one and update the account in Go4Lead.

Google limits how much any account can send per day (about 500 for free Gmail and 2,000 for Workspace). For cold email, stay far below that.

Still stuck?

Click Feedback at the top of any page in the app, choose Question, and tell us what you tried. We reply by email.