---
title: Magic Link Sign-In Email Template | SendHQ
description: A concise passwordless sign-in email that explains device context, expiration, and what to do with an unexpected request.
canonical: https://sendhq.cc/templates/magic-link
last-updated: 2026-08-24
---
# Magic Link Sign-In Email Template

A concise passwordless sign-in email that explains device context, expiration, and what to do with an unexpected request.

## Production-oriented source

```html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="color-scheme" content="light">
  <meta name="supported-color-schemes" content="light">
  <title>Your secure sign-in link</title>
  <style>
    body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
    table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
    table { border-collapse: collapse !important; }
    img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
    @media screen and (max-width: 620px) {
      .email-shell { width: 100% !important; }
      .email-pad { padding: 28px 20px !important; }
    }
  </style>
</head>
<body style="margin:0;padding:0;background:#f6f6f7;font-family:Arial,'Helvetica Neue',sans-serif;color:#1d1d1f;">
  <div style="display:none;max-height:0;overflow:hidden;opacity:0;color:transparent;mso-hide:all;">{{preheader}}&#847; &zwnj; &nbsp; &#8199; &#65279;</div>
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" bgcolor="#f6f6f7">
    <tr>
      <td align="center" style="padding:32px 12px;">
        <table role="presentation" class="email-shell" width="600" cellpadding="0" cellspacing="0" style="width:600px;max-width:600px;background:#ffffff;border:1px solid #e6e6e8;border-radius:18px;">
          <tr><td style="padding:24px 36px 10px;font-size:20px;font-weight:700;letter-spacing:-0.3px;">{{company_name}}</td></tr>
          <tr><td class="email-pad" style="padding:24px 36px 36px;font-size:16px;line-height:1.6;"><h1 style="margin:0 0 16px;font-size:28px;line-height:1.2;color:#1d1d1f;">Sign in to {{company_name}}</h1><p style="margin:0 0 16px;color:#4b4b52;">Hi {{recipient_name}},</p><p style="margin:0 0 10px;color:#4b4b52;">Use this one-time link to sign in. It expires in {{expires_in}} and can only be used once.</p><p style="margin:0 0 24px;color:#6f6f76;font-size:14px;">Requested from: {{requested_device}}</p><table role="presentation" cellpadding="0" cellspacing="0" style="margin:0;"><tr><td bgcolor="#ff5a5f" style="border-radius:10px;"><a href="{{magic_link_url}}" style="display:inline-block;padding:13px 20px;border:1px solid #ff5a5f;border-radius:10px;color:#1d1d1f;font-weight:700;text-decoration:none;">Sign in securely</a></td></tr></table><p style="margin:24px 0 8px;color:#4b4b52;">Or paste this address into your browser:</p><p style="margin:0 0 24px;word-break:break-all;"><a href="{{magic_link_url}}" style="color:#c92f3a;text-decoration:underline;">{{magic_link_url}}</a></p><p style="margin:0;color:#6f6f76;font-size:14px;">If you did not request this link, do not forward or use it. You can safely ignore this email.</p></td></tr>
          <tr><td style="padding:22px 36px;border-top:1px solid #e6e6e8;color:#6f6f76;font-size:12px;line-height:1.6;">Sent by {{company_name}}<br>{{company_address}}<br><a href="mailto:{{support_email}}" style="color:#6f6f76;text-decoration:underline;">{{support_email}}</a></td></tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>
```

## Variables

**`{{company_name}}`**

Product or company name

**`{{recipient_name}}`**

Recipient display name

**`{{magic_link_url}}`**

Single-use HTTPS sign-in link

**`{{expires_in}}`**

Human-readable link lifetime

**`{{requested_device}}`**

Non-sensitive device context

**`{{support_email}}`**

Security contact

**`{{company_address}}`**

Company mailing address

## Implementation notes

- Bind the token to one account and consume it on first successful use.
- Avoid putting sensitive personal data in the URL or analytics parameters.
- Consider an interstitial confirmation when the email client and browser devices differ.

Use your renderer to escape untrusted values. Generate a meaningful plain-text alternative and test the final server-rendered message in recipient clients you support.

## More transactional templates

- [Email Verification Template](https://sendhq.cc/templates/email-verification.md): An accessible verification email with a clear action, visible fallback URL, expiration context, and safe ignore-state copy.
- [Password Reset Email Template](https://sendhq.cc/templates/password-reset.md): A focused password-reset email with a single-use action, expiration notice, fallback link, and security guidance.
- [SaaS Welcome Email Template](https://sendhq.cc/templates/welcome.md): A useful onboarding welcome email with one primary action, a short setup path, and a real support route.
