Email Sending

    Connecting via SMTP

    Updated June 3, 2026Swokei

    SMTP connection works with any email provider—Gmail, Outlook, iCloud, Zoho, Fastmail, Yahoo, and custom domains hosted on cPanel or any standard hosting provider. Use SMTP when OAuth isn't available, your organization blocks OAuth, or you prefer not to grant OAuth permissions.

    Connect a mailbox modal

    What you need before starting

    • Your full email address (e.g., [email protected])
    • Your SMTP password—for providers with two-factor authentication, this is an App Password, not your regular login password (see provider-specific instructions below)
    • Your provider's SMTP server hostname and port (Swokei auto-detects most common providers)

    Connecting via SMTP — step by step

    1. In the Swokei sidebar, click "Mailboxes".
    2. Click "Add mailbox". The "Connect a mailbox" modal opens.
    3. Click "Domain authentication". A form appears in the modal.
    4. Fill in the "Email address" field with your full email address (e.g., [email protected]).
    5. Fill in the "Display name" field—this is the "From" name recipients will see in their inbox.
    6. Fill in the "Password" field. Use your regular email password, or an App Password if required by your provider (see below for provider-specific steps).
    7. Click "Detect settings". Swokei tries to automatically find your SMTP server hostname, port, and security type. This takes 3–5 seconds.

    If detection succeeds

    A green box appears below showing the detected provider, SMTP host, port, and security type (e.g., "Gmail detected — smtp.gmail.com, port 465, SSL"). Review the settings and click "Connect mailbox". Swokei tests the connection. If successful, the modal closes and your mailbox appears in the Mailboxes list with a green "Connected" badge.

    If detection fails

    A message says the settings couldn't be detected automatically. Click "Advanced settings" to expand a manual configuration form. Enter:

    • SMTP host — the server hostname from your email provider (e.g., mail.yourdomain.com)
    • SMTP port — usually 465 (SSL) or 587 (STARTTLS)
    • Use SSL/TLS — toggle on for port 465, off for port 587

    Click "Connect mailbox" to test and save.

    SMTP settings for common providers

    ProviderSMTP HostPortSecurity
    Gmailsmtp.gmail.com465SSL
    Outlook / Microsoft 365smtp.office365.com587STARTTLS
    iCloud Mailsmtp.mail.me.com587STARTTLS
    Zoho Mailsmtp.zoho.com465SSL
    Fastmailsmtp.fastmail.com465SSL
    Yahoo Mailsmtp.mail.yahoo.com465SSL
    cPanel hostingmail.yourdomain.com465SSL

    Gmail via SMTP — App Password required

    Gmail doesn't allow your regular account password for SMTP connections. You must generate an App Password:

    1. Go to myaccount.google.com and sign in.
    2. Click "Security" in the left sidebar.
    3. Scroll to "How you sign in to Google" and click "2-Step Verification". (You must have 2-Step Verification enabled first.)
    4. Scroll to the bottom of the 2-Step Verification page and click "App passwords".
    5. In the "App name" field, type "Swokei" and click "Create".
    6. Google displays a 16-character password in a yellow box. Copy it immediately—you won't see it again after closing this dialog.
    7. Paste this 16-character password into Swokei's SMTP password field. Don't add spaces.
    Gmail users: OAuth may be simpler. Gmail's OAuth connection (the "Connect Gmail" button) is generally more reliable than SMTP for most Gmail accounts. Use SMTP only if OAuth isn't working for you or your organization blocks it.

    Outlook / Microsoft 365 via SMTP — App Password required

    If your Microsoft account has two-factor authentication enabled (standard on most accounts), you need an App Password for SMTP:

    1. Go to account.microsoft.com and sign in.
    2. Click "Security", then click "Advanced security options".
    3. Scroll to "App passwords" and click "Create a new app password".
    4. Microsoft generates a password and displays it on screen. Copy it immediately.
    5. Use this password in Swokei's SMTP password field instead of your regular Microsoft account password.

    iCloud Mail via SMTP — App-Specific Password required

    Apple requires App-Specific Passwords for all third-party SMTP access when two-factor authentication is enabled (required on all modern Apple IDs):

    1. Go to appleid.apple.com and sign in.
    2. Click "Sign-In and Security", then "App-Specific Passwords".
    3. Click the "+" icon or "Generate an app-specific password".
    4. Enter a label—type "Swokei"—and click "Create".
    5. Apple displays the generated password. Copy it and use it in Swokei's SMTP password field.
    6. Use SMTP host smtp.mail.me.com, port 587, STARTTLS.

    After a successful connection

    Once the connection test passes, the modal closes and your mailbox appears in the Mailboxes list with a green "Connected" badge labeled "SMTP". Click on the mailbox to open its settings drawer and configure your display name and email signature.

    When to use SMTP instead of OAuth

    Use SMTP when:

    • Your organization's IT policy blocks OAuth app authorization
    • You're using a provider that doesn't support OAuth (Zoho, Fastmail, custom domains on cPanel, etc.)
    • You have an on-premise Exchange server
    • You prefer not to grant OAuth permissions for any reason

    SMTP is slightly more work to configure but works with virtually any email provider that supports it.

    Understanding App Passwords

    An App Password is a one-time password generated specifically for third-party applications like Swokei. When two-factor authentication is enabled, your real account password alone isn't sufficient—Gmail, Microsoft, and Apple require an App Password for SMTP connections as a security measure. You generate one in your account's security settings, then paste it into Swokei. The App Password is specific to Swokei and can be revoked anytime from your account settings.

    Is SMTP less reliable than OAuth?

    SMTP is generally very reliable once configured. The main difference: OAuth connections automatically refresh their access tokens without any action from you, while SMTP credentials don't auto-refresh. SMTP credentials remain valid indefinitely unless you change your email password or revoke the App Password. If you do either, you'll see a connection error badge in Swokei and need to update the credentials. This is the primary trade-off compared to OAuth's automatic token management.

    Troubleshooting SMTP connections

    Error: "Authentication failed" or "Invalid credentials"

    The most common cause. Work through these in order:

    • If using Gmail, Outlook, or iCloud—you must use an App Password, not your regular login password
    • Check for typos. Copy-paste the password rather than typing it manually
    • Verify the email address is correct. Some providers use a different SMTP username format than the display email

    Error: "Connection refused" or connection timed out

    • The SMTP host or port is likely wrong. Try the alternative port (swap 465 ↔ 587)
    • Make sure the SSL/TLS toggle matches your port: SSL on for 465, SSL off for 587
    • If you're on a corporate network, outbound SMTP may be blocked. Test from a different network or contact your IT team

    Error: "TLS handshake failed" or "SSL error"

    You're using the wrong security setting for your port. Port 465 requires SSL on. Port 587 requires SSL off (it uses STARTTLS instead). Open Advanced settings and correct the toggle to match your port.

    Connection succeeds but emails go to spam

    SMTP connection quality doesn't affect spam placement—that's determined by sender reputation and email authentication (SPF, DKIM, DMARC). See Staying out of the spam folder for a complete deliverability diagnostic guide.

    Testimonials

    Agencies that let Swokei do the outreach

    The main thing I like is that the emails actually have something relevant to say. Instead of sending the same pitch to everyone, I can mention their design, SEO or mobile experience without doing the research manually.
    Chris Bergman
    Founder
    Great tool. I'd recommend Swokei to any web designer looking to get more web design clients.
    Emma Lindqvist
    Owner
    We were already doing outreach for our web design company, but most of the time we were guessing what to say. Now we let Swokei analyze business websites, find real issues, and turn them into personalized emails we can still send at scale.
    Sanjay Purma
    Director
    We run a small web design agency and outreach has always been one of those things we know we need to do but never had enough time for. Swokei made it much easier to keep it consistent.
    Rachel Owens
    Creative Lead
    We send far more outreach than before and it's more personal, not less. That combination just didn't exist for us until this.
    Marcus Tan
    Head of Growth
    One of my employees kept telling me to give Swokei a try. I was pretty skeptical at first, but after using it for a while, it quickly became part of our daily outreach.
    Tom Beck
    Founder
    Swok
    AI · Usually instant
    Hello there
    How can I help you today?
    You're on: Help Center
    Swok can make mistakes. Double-check important info.