Free email template
New sign-in alert email template
A ready-to-use new sign-in (security alert) email template showing device, location and time, with responsive HTML. Copy it, swap in your brand and variables, and send.
Last reviewed November 2026
New sign-in to your Acme account · {{device}} · {{location}} · {{time}}
new-login-alert.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="x-apple-disable-message-reformatting">
<title>New sign-in to your Acme account</title>
</head>
<body style="margin:0;padding:0;background:#f4f4f5;">
<div style="display:none;max-height:0;overflow:hidden;opacity:0;">{{device}} · {{location}} · {{time}}</div>
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background:#f4f4f5;">
<tr><td align="center" style="padding:32px 16px;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="max-width:560px;background:#ffffff;border-radius:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<tr><td style="padding:32px 32px 0;font-size:18px;font-weight:700;color:#18181b;">Acme</td></tr>
<tr><td style="padding:24px 32px 8px;">
<h1 style="margin:0 0 16px;font-size:22px;line-height:30px;color:#18181b;">New sign-in to your account</h1>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">Your Acme account was just signed in to from a new device.</p>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="margin:8px 0 24px;"><tr><td style="border-radius:8px;background:#18181b;"><a href="https://acme.com/settings/security" style="display:inline-block;padding:12px 24px;font-size:15px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:8px;">Secure my account</a></td></tr></table><table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin:8px 0 24px;border-top:1px solid #e4e4e7;"><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Device</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;">Chrome on macOS</td></tr><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Location</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;">Lisbon, Portugal (approximate)</td></tr><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Time</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;font-weight:700;">Nov 5, 2026, 09:41 UTC</td></tr></table>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">If this was you, there's nothing to do. If not, reset your password right away and turn on two-factor authentication.</p>
</td></tr>
<tr><td style="padding:16px 32px 32px;border-top:1px solid #f4f4f5;font-size:13px;line-height:20px;color:#a1a1aa;">We send this email for every sign-in from a new device.<br>Acme Inc., 123 Market St, San Francisco, CA</td></tr>
</table>
</td></tr>
</table>
</body>
</html>Subject line ideas
- New sign-in to your Acme account
- Was this you? New sign-in from {{device}}
- Security alert: new sign-in
Preheader: {{device}} · {{location}} · {{time}}
Best practices
- Only alert on new devices or locations to avoid fatigue.
- Make the 'not me' path one click away.
Variables used
{{device}}, {{location}}, {{time}}
Plain-text version
Always send a text part alongside HTML. It helps deliverability and accessibility.
New sign-in to your account
Your Acme account was just signed in to from a new device.
Secure my account: https://acme.com/settings/security
Device: Chrome on macOS
Location: Lisbon, Portugal (approximate)
Time: Nov 5, 2026, 09:41 UTC
If this was you, there's nothing to do. If not, reset your password right away and turn on two-factor authentication.
--
We send this email for every sign-in from a new device.
Send it with the API
POST /v1/emails
curl -X POST https://stackemails.com/v1/emails -H "Authorization: Bearer $STACKEMAILS_API_KEY" -H "Content-Type: application/json" -d '{
"from": "Acme <hello@mail.acme.com>",
"to": "ada@example.com",
"subject": "New sign-in to your Acme account",
"html": "<!-- the HTML above, with variables filled in -->",
"text": "<!-- the plain-text version -->",
"tags": [{ "name": "template", "value": "new-login-alert" }]
}'