Trying to get Gmail’s Copy code button on OTP emails
Gmail showed me this Copy code card above a verification email from another service. I wanted the same shortcut for Nentaf’s sign-in emails. An AI agent sent 14 test messages through Resend to the same inbox. Gmail showed the card on none of them.

| Test | What the agent tried | Messages with the card |
|---|---|---|
| Subject and body | Tried a standalone code, codes after a label, and six-digit variants with different subjects and code placement. | 0 of 7 |
| Email preheader without a code | Kept the production subject and eight-digit template. One message had no preheader and the other had the hidden text Your Nentaf verification code. Gmail displayed that text in the inbox preview. | 0 of 2 |
| Six- and eight-digit codes in the preheader | Kept the same visible Nentaf template. One hidden preheader contained just Your security code is:. The other two added a six-digit or eight-digit sample code. Gmail displayed both codes in the inbox preview. | 0 of 3 |
| Close reproductions of emails that showed the card | Reused each original’s subject format and full plaintext and HTML, including formatting and the hidden preview. Both messages used six-digit sample codes. The agent refreshed the request timestamp in one. | 0 of 2 |

The seven subject and body variants
The first four kept Nentaf’s usual sign-in-code subject. The control used the existing body with a standalone eight-digit code. The next variant put Your security code is: in a separate paragraph before the eight-digit code. The agent then put the code on the same line as the label, first with eight digits and then with six.
The other three used six-digit codes. One kept the code inline and used One time code as the subject. Another kept the inline body and switched to a code-first subject, [code] is your verification code. The last kept that subject and simplified the body so the sentence started with the code.
How the agent checked each email
On November 29, 2026, the agent used Nentaf’s authenticated production sender. It sent each test directly to the same work Gmail inbox in a separate conversation, using sample codes only. The production template stayed in place, and the experiment involved no customer emails.
The agent used the Gmail API to confirm all 14 arrivals and verify that the decoded plaintext and HTML matched the intended variants. It checked SPF, DKIM, and DMARC, then opened each email in desktop Gmail and looked for the native card above the message body.
The same-inbox comparison confirmed that the work inbox could display the card. A second original verification email showed the card in a different mailbox. The reproductions used Nentaf as the sender and Resend as the transport. The delivery setup and the sample values changed together, so the comparison leaves their individual effects open.
What Google and Resend say about the card
Google describes how Gmail uses heuristics and machine learning for summary cards, with examples such as flight reservations and order confirmations. Its explainer gives no rules for showing a card on OTP emails. Google’s Gmail summary cards explainer
Resend shows the Copy code button and describes how Gmail extracts a one-time password from an email. Resend’s write-up on email verification
I still don’t know how to make Gmail show Copy code. If you’re debugging an OTP email, use these 14 cases to narrow what you try next.
If you’ve gotten Gmail to show Copy code for your own verification emails, please tell me what you changed and how you tested it.




