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
| Field | Value |
|---|---|
| SMTP host:port | smtp.gmail.com:587 |
| Username | Your full Gmail address (you@gmail.com) |
| Password | 16-character Google App Password |
| From email | Same Gmail address (or a send-as alias you own) |
| Ignore TLS errors | Leave 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
- Step 1. Sign in at https://myaccount.google.com/security
- Step 2. Under “How you sign in to Google”, open 2-Step Verification
- Step 3. Follow the prompts to turn it on if it is not already enabled
Step 2 — Create an App Password
- Step 1. Open https://myaccount.google.com/apppasswords (you may need to sign in again)
- Step 2. Select App = Mail and Device = Other (custom name)
- Step 3. Name it “PandaONE Phish” and click Generate
- Step 4. Copy the 16-character code Google shows once — you cannot view it again
- Step 5. Remove spaces when pasting into Phish (abcd efgh ijkl mnop → abcdefghijklmnop)
Step 3 — Add the sending profile in Phish
- Step 1. Open the Phish dashboard → Sending
- Step 2. Choose the Gmail preset
- Step 3. Set Username and From email to the same @gmail.com address
- Step 4. Paste the App Password into the password field
- Step 5. Save the profile, then click Send test to your own inbox
Step 4 — Verify delivery
- Step 1. Check your inbox (and spam folder) for the test message
- Step 2. If it lands in spam, share the Workspace whitelist guide with your Google admin
- Step 3. Confirm the From address matches the mailbox you authenticated with
- 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.