PandaONEPhish
← Back to blog

Sending

Set Up Gmail SMTP with an App Password

Connect PandaONE Phish to Gmail or Google Workspace using smtp.gmail.com, a Google App Password, and the correct From address settings.

March 26, 2026 · 7 min read

Phish sending profile settings

FieldValue
SMTP host:portsmtp.gmail.com:587
UsernameYour full Gmail address (you@gmail.com)
Password16-character Google App Password
From emailSame Gmail address (or a send-as alias you own)
Ignore TLS errorsLeave unchecked

When to use Gmail SMTP

Gmail SMTP is the fastest way to send authorized phishing simulations when you already have a Gmail or Google Workspace mailbox. Personal Gmail accounts can send roughly 500 messages per day; Workspace limits depend on your plan.

Google no longer supports “Less secure app access.” You must use an App Password with 2-Step Verification enabled.

Prerequisites

  • • A Gmail or Google Workspace account you are allowed to send from
  • • 2-Step Verification enabled on that Google account
  • • Permission to run phishing simulations on your recipient list

Step 1 — Enable 2-Step Verification

  1. Step 1. Sign in at https://myaccount.google.com/security
  2. Step 2. Under “How you sign in to Google”, open 2-Step Verification
  3. Step 3. Follow the prompts to turn it on if it is not already enabled

Step 2 — Create an App Password

  1. Step 1. Open https://myaccount.google.com/apppasswords (you may need to sign in again)
  2. Step 2. Select App = Mail and Device = Other (custom name)
  3. Step 3. Name it “PandaONE Phish” and click Generate
  4. Step 4. Copy the 16-character code Google shows once — you cannot view it again
  5. Step 5. Remove spaces when pasting into Phish (abcd efgh ijkl mnop → abcdefghijklmnop)

Step 3 — Add the sending profile in Phish

  1. Step 1. Open the Phish dashboard → Sending
  2. Step 2. Choose the Gmail preset
  3. Step 3. Set Username and From email to the same @gmail.com address
  4. Step 4. Paste the App Password into the password field
  5. Step 5. Save the profile, then click Send test to your own inbox

Step 4 — Verify delivery

  1. Step 1. Check your inbox (and spam folder) for the test message
  2. Step 2. If it lands in spam, share the Workspace whitelist guide with your Google admin
  3. Step 3. Confirm the From address matches the mailbox you authenticated with
  4. Step 4. Clear any Envelope sender override on email templates when using Gmail

Sending limits and notes

  • • Personal Gmail: about 500 messages per day
  • • Google Workspace: limits vary by plan — check with your admin for bulk campaigns
  • • Workspace admins can disable App Passwords org-wide
  • • For local development without real delivery, use Mailpit instead (see Sending docs)

Common issues

535 Username and Password not accepted
Regenerate the App Password. Use the full @gmail.com address as username and paste the 16-character code with spaces removed.
534 Application-specific password required
2-Step Verification is on but you used your normal password. Create an App Password instead.
App passwords option is missing
Enable 2-Step Verification first. Workspace accounts may need an admin to allow app passwords.
451 4.3.0 Mail server temporarily rejected message
Gmail requires the From address and SMTP envelope sender to match the authenticated mailbox. Set Username and From email to the same address and clear Envelope sender on templates.

References