Gmail Account Setup

Gmail Account Setup

Learn how to add custom domain email addresses (like yourname@yourcompany.com) to Gmail and use them with DraftMerge for sending professional campaigns.

Why This Matters: DraftMerge sends emails through your Gmail account. To send from a custom domain address (e.g., connect@softcofee.com), you must first add it as a verified alias in Gmail. This guide walks you through the complete setup.

Overview

This setup involves four phases:

  1. Generate a Google App Password — required for authentication
  2. Add the Custom Email to Gmail — register the alias
  3. Configure SMTP Settings — point Gmail to its own servers
  4. Verify the Address — confirm ownership via email

Phase 1: Generate a Google App Password

Google requires App Passwords for third-party applications. You'll use this password in the SMTP configuration later.

1Enable 2-Step Verification

App Passwords require 2-Step Verification to be enabled on your Google Account.

  1. Go to myaccount.google.com
  2. Click Security in the left menu
  3. Under "How you sign in to Google", find 2-Step Verification
  4. If it's off, click it and follow the setup prompts

2Create an App Password

  1. Stay on the Security page
  2. Scroll to the bottom of the 2-Step Verification section
  3. Click App passwords
  4. In the dialog, enter a name like Custom Domain Email
  5. Click Create
  6. Copy the 16-character password shown in the yellow box

Important: Save this password somewhere safe. You won't be able to see it again.

Google Account Security page showing App Passwords section with 16-character password

Figure 1: Google Account Security page — App Passwords section


Phase 2: Add the Custom Email Address to Gmail

3Open Gmail Settings

  1. Open Gmail in your browser
  2. Click the Settings gear icon (top right)
  3. Click See all settings
  4. Go to the Accounts and Import tab
Gmail Settings showing Accounts and Import tab with Send mail as section

Figure 2: Gmail Settings → Accounts and Import tab

4Add Another Email Address

  1. Find the "Send mail as" section
  2. Click Add another email address
  3. A popup dialog appears
  4. Enter your Name (how recipients will see you)
  5. Enter your custom email address (e.g., connect@softcofee.com)
  6. Leave "Treat as an alias" checked ✅
  7. Click Next Step
Gmail Add another email address dialog with Name, Email, and Treat as alias checkbox

Figure 3: "Add another email address you own" dialog


Phase 3: Configure Gmail's SMTP Settings

⚠️ Critical: Do NOT enter your custom domain's SMTP server or Cloudflare's mail servers. You must use Gmail's own SMTP server (smtp.gmail.com) with your App Password.

5Enter SMTP Configuration

Fill in the fields exactly as shown below:

Field Value
SMTP Server smtp.gmail.com
Port 587
Username Your original Gmail address (e.g., yourname@gmail.com)
Password The 16-character App Password from Phase 1
Connection ✅ Secured connection using TLS (recommended)

Click Add Account.

Gmail SMTP configuration dialog with smtp.gmail.com, port 587, TLS selected

Figure 4: SMTP configuration — use Gmail's own server

Why Gmail's SMTP? Gmail needs to authenticate the sending request. Using smtp.gmail.com with your App Password tells Gmail "this is me, sending from an alias I own." External SMTP servers (like Cloudflare's) don't have your credentials and will reject the connection.

Phase 4: Verify the Address

6Confirm Ownership

  1. Gmail sends a verification email to your custom address (e.g., connect@softcofee.com)
  2. If you have email forwarding set up (e.g., via Cloudflare Email Routing), the verification code arrives in your Gmail inbox
  3. Open the email from gmail-noreply@google.com
  4. Either:
    • Click the verification link in the email, OR
    • Copy the confirmation code and paste it into the Gmail setup dialog
  5. Click Verify
✅ Success! Once verified, you can send emails from connect@softcofee.com using DraftMerge. When composing in Gmail, use the "From" dropdown to switch between your addresses.

Repeat for Additional Addresses

To add more custom domain addresses (e.g., support@softcofee.com, draftmerge@softcofee.com):

  1. Go back to Settings → Accounts and Import → Send mail as
  2. Click Add another email address
  3. Repeat steps 4-6 above
  4. Reuse the same App Password — you only need to generate it once

Using Your Custom Address in DraftMerge

Once your custom email is verified in Gmail:

  1. Open the DraftMerge extension
  2. Go to Settings
  3. In the "From Address" field, enter your custom email (e.g., connect@softcofee.com)
  4. Save settings
  5. When you send campaigns, recipients will see emails from your custom domain address
⚠️ Important: The "From" address in DraftMerge must match either:
  • Your authenticated Gmail account (yourname@gmail.com), OR
  • A verified alias in Gmail's "Send mail as" settings
If you enter an unverified address, campaigns will show "sent successfully" but emails won't actually deliver. Gmail silently drops messages with unauthorized From addresses.

Troubleshooting

"Authentication failed" error

  • Double-check the App Password (16 characters, no spaces)
  • Ensure you're using smtp.gmail.com (not your domain's SMTP)
  • Verify 2-Step Verification is enabled
  • Try generating a new App Password

Verification email not received

  • Check your spam folder
  • If using email forwarding, ensure it's working (test by sending a regular email to the custom address)
  • Wait 5-10 minutes — verification emails can be delayed
  • Click "Resend" in the Gmail dialog if available

Recipients see "via gmail.com"

This is normal when using Gmail's free tier with a custom domain. To remove this:

  • Upgrade to Google Workspace ($7/month) — hosts your domain natively on Google's servers
  • Or accept the "via gmail.com" label — it doesn't affect deliverability

⚠️ Critical: Silent Email Failures with Invalid From Addresses

🚨 Known Issue: If you send a campaign with a "From" address that is NOT verified in Gmail, the campaign will show "Sent Successfully" but emails will silently fail to deliver. There will be no bounce notification, no error message, and no indication that anything went wrong.

What Happens?

When you use a "From" address that is neither:

  • Your authenticated Gmail account (yourname@gmail.com), OR
  • A verified alias in Gmail's "Send mail as" settings

Gmail's API will accept the message and return a success response, but then silently drop it without delivery. This is a security measure by Gmail to prevent spoofing.

Symptoms

  • ✅ Campaign status shows "Sent Successfully"
  • ✅ No error messages in DraftMerge
  • ✅ No bounce notifications
  • ❌ Recipients never receive the email
  • ❌ No record of the email in Gmail's "Sent" folder

Why Does This Happen?

This is not a DraftMerge bug — it's inherent Gmail behavior. The Gmail API's messages.send endpoint accepts messages with any From header for processing, but Gmail's internal mail routing performs additional authentication checks. If the From address fails these checks, the message is dropped silently with no error returned to the API caller.

How to Verify Your From Address

Before sending campaigns, verify your From address is properly set up:

  1. Open Gmail in your browser
  2. Click the Settings gear icon → See all settings
  3. Go to the Accounts and Import tab
  4. Look at the "Send mail as" section
  5. Verify your custom email address appears in this list
  6. If it's not there, follow the setup steps in the sections above to add it

How to Fix Silent Failures

If you suspect emails are failing silently:

  1. Stop the campaign immediately
  2. Verify your From address in Gmail settings (see above)
  3. If the address is not verified, add it using the "Send mail as" procedure
  4. Wait for the verification email and confirm the address
  5. Test by sending a single email to yourself first
  6. Resume or restart your campaign
💡 Best Practice: Always send a test email to yourself before launching a full campaign. This confirms your From address is working correctly and helps you catch silent failures before they affect your entire recipient list.

Common Mistakes

❌ Wrong ✅ Correct
Using an unverified custom domain email Verify the email in Gmail's "Send mail as" first
Typing the From address manually without verification Only use addresses shown in Gmail's "Send mail as" list
Assuming "Sent Successfully" means delivered Always test with a real email first
Using a different email provider's SMTP settings Use smtp.gmail.com with App Password (as shown above)

Related Topics

Need Help?

If you're stuck: