Skip to content
86% off$349 $48.86code BF2026

Guides

Safari Autofill Verification Codes From a Third-Party Mail App

Mailloft can't feed Safari autofill, but Copy Code (⇧⌘C) puts an emailed code on your clipboard in one step. Compare it with Apple Mail, SMS and Passwords.

GuideUpdated 6 min read

On this page

You use a third-party mail app on your Mac, you sign in to a site in Safari, and the site emails you a code. Apple says codes that arrive in Mail are filled in automatically in Safari, and you want the same from your own mail app. People in other mail-app communities ask for this too, for example in a Mimestream feature-request thread. We can't speak for Mimestream's plans. This page covers what works today.

Why it happens

Safari autofill reads codes from specific Apple apps, not from the clipboard or from other mail clients. Apple's own wording is that one-time verification codes you receive in Mail are filled in automatically, so you can sign in without leaving Safari. Texts work through Messages, and Apple documents using security codes sent to your iPhone to sign in to webpages on your Mac.

A mail client that talks to your server over IMAP, as Mailloft does, receives the message but has no route to give the code to Safari. We have no Safari autofill integration and no setting that adds one. Mailloft's job is to detect the code, make it easy to copy, and keep it out of clipboard history.

Your options, compared

MethodSafari fills it inCatch
Add the account to Apple MailYesYou run a second mail app on the same account
Have the site text the codeYes, via MessagesThe site must offer SMS; your iPhone must forward texts to your Mac
Authenticator code in Apple's PasswordsYesOnly for sites that support authenticator apps; no email involved
Copy the code from MailloftNo, you paste itOne extra keystroke: ⌘V

Pick one of the first three if autofill matters more to you than where you read mail. Pick the last if you'd rather stay in Mailloft and paste.

Fix 1: Copy the code from Mailloft (stay in one mail app)

Mailloft detects one-time codes on this Mac as mail arrives. It recognizes 4 to 8 digit codes and letter-and-digit codes, in many languages, and rejects dates, amounts and order numbers.

  1. Request the code on the website.
  2. In Mailloft, open the message or select it in the list. Look for the bar labeled Verification code.
  3. Click Copy Code, or press ⇧⌘C while the bar is visible.
  4. Switch to Safari, click the code field and press ⌘V.

Copy Code also marks the message as read. The code is copied as concealed, transient clipboard content, so clipboard managers that honor that flag skip it.

Skip opening the message

  • Code chip in the list. Mail with a code shows a chip in its row, so you can spot it without reading it.
  • Notification action. A new-mail banner for a code message has a Copy Code button. Click it and go straight to Safari. This needs notifications allowed for Mailloft.

If the email has a sign-in link instead of a code, the reader shows a Sign-in link bar with Open Link. Mailloft offers this only for https links.

Tidy up afterward

Settings > Reading > Verification Codes has a per-account option, "Archive code mail 15 minutes after copying the code". It's off by default and undoable. The timer doesn't survive quitting Mailloft.

Fix 2: Let Apple Mail receive the code

Add the same email account to Apple Mail, then request the code again. Safari should offer the code in the field. Your daily mail app doesn't change, but you now have two apps connected to one account. Apple Mail only needs to be set up, not used for reading. If you sign in to a few sites a week, pasting from Mailloft is probably less hassle.

Apple's autofill from Mail doesn't always trigger. Developers on Apple's forums report that it failed for some sites, including cases where the sending domain didn't match the site's domain. If it doesn't fill, copy the code by hand.

Fix 3: Ask the site to text the code

Many verification screens offer "text me" instead of "email me". If the text goes to your iPhone, turn on Text Message Forwarding. Apple's steps: on your iPhone, go to Settings > Apps > Messages > Text Message Forwarding, then tap your Mac. Safari then offers the code on your Mac. See Apple's page on autofilling security codes from your iPhone in Safari on Mac.

Fix 4: Use an authenticator code in Passwords

This skips email entirely. If the site supports authenticator apps, choose the option to manually use a setup key and copy it, then in the Passwords app select the account, click Edit, then Set Up Code, and paste the key. Apple documents the full steps in Automatically fill verification codes on Mac. It doesn't help with sites that only send codes by email.

If the code doesn't show up or Copy Code is missing

SymptomLikely causeFix
No email, no bannerSender is in The ScreenerOpen The Screener (⌥⌘1), click Allow
Email arrives, no banner"Notify for" is Primary Only and the mail landed in UpdatesChoose All New Mail in Settings > Notifications
Banner hiddenQuiet hours or macOS notifications offCheck quiet hours, then System Settings > Notifications
Email arrives lateServer has no push, so Mailloft checks every 5 minutesPress ⇧⌘N (Get New Mail)
No Verification code barCode format wasn't recognizedCopy it by hand
Nothing syncsLicense locked, for example after the trialEnter a license; see troubleshooting

The Screener. Mailloft holds first-time senders there until you decide, and a site you just signed up with is usually a first-time sender. Screened mail never notifies and is left out of the menu bar list. See Screen first-time senders with The Screener.

Push vs polling. Settings > Accounts shows "Push" or "Checks every 5 min" for each account.

For sign-in and sync errors, see Troubleshoot Mailloft. For banners and their buttons, see Notifications, menu bar, widgets and Shortcuts.

Checklist before you try again

  • The email has arrived (check The Screener and Get New Mail).
  • The message is open and the Verification code bar is visible.
  • You pressed ⇧⌘C or clicked Copy Code before switching apps.
  • The code hasn't expired. Many sites expire codes within minutes.
  • You paste with ⌘V in the focused code field.

If nothing works

If codes never arrive or the bar never appears for a sender that should work, contact us through MacSuite support. Include a sample (with the code redacted), the sender, and the account provider.

text
Subject: Mailloft doesn't show Copy Code for a verification email

Mailloft version: (Mailloft > About)
macOS version:
Account provider: (iCloud / Gmail / Fastmail / other)
Sender of the code email:
What I see: no "Verification code" bar / no banner / email arrives late
Steps tried: checked The Screener, set Notify for to All New Mail, pressed Get New Mail
Redacted sample of the email attached: yes

For Safari or Apple Mail autofill that fails, Apple Support is the right contact.

Common questions

Will Safari ever autofill from Mailloft?

Not today. Mailloft has no Safari autofill integration, and we won't promise a date.

Does Copy Code send my code anywhere?

No. Mailloft has no telemetry. The code goes only to your clipboard, as concealed content.

Is there a way to avoid the paste step?

Only by using a route Safari reads: Mail, Messages or an authenticator code in Passwords. From Mailloft, the shortest path is ⇧⌘C, then ⌘V, or the Copy Code button on the notification.

Does Mailloft detect codes in every email?

No. It rejects dates, amounts and order numbers, and the list chip reads only the subject and preview. Open the message to see the bar.

Mailloft is part of MacSuite, and you can try it free for 7 days. More on the Mailloft page.

Every app.
One purchase.