Black Friday is here 🔥 Get Wensity Pro for 20% less with

Magic link email template

Pro

A passwordless sign-in email where the button is the whole email, with the link lifetime and where the request came from.

Overview

Passwordless sign-in lives or dies on how fast someone can find the button, so this template has almost nothing else: the address being signed in, the button, and one muted line saying the link works once and expires in 15 minutes. The fallback URL sits under a hairline for clients that strip buttons, and a closing note names the browser and city of the request so a stranger's attempt is obvious. It takes the email, sign-in URL and request details as props, which maps directly onto the magic link plugins most auth libraries ship.

This template is part of the 65 React Email templates that come with Wensity Pro. Each one is a single file built from React Email components, with a kit for your brand, and installs with the Wensity CLI or the MCP server.

Installation

Run the following command

~/your-project
pnpm dlx wensity@latest emails add ledger/magic-link

The email lands in emails/ledger/ next to the style's kit.tsx, where you set your brand, colours and links once. It needs Wensity Pro and npx wensity@latest login.

Usage

Render the email to HTML with render() from React Email, then send it with Resend, Nodemailer, AWS SES or any provider. The data that changes per send is a typed prop.

send.tsx
import { render } from "react-email";
import Email from "@/emails/ledger/magic-link";
const html = await render(<Email {...props} />);

More email templates

All 65 templates
  • One-time code email template in the Ledger style

    One-time code

    Ledger

    A six-digit code, one digit per box, with the expiry beside it.

  • New sign-in alert email template in the Ledger style

    New sign-in alert

    Ledger

    A new sign-in alert that asks one question: was this you?

  • Team invitation email template in the Grove style

    Team invitation

    3 styles

    Invites that say who asked and what you will see once you join.