Skip to content

New Sign-In Security Alert Email

Email-safe security alert template for a new sign-in: device, browser, location, IP and time rows plus "This was me" and "Secure my account" buttons.

Also known as: security alert email, new login notification email, suspicious sign in email, account security email

New Sign-In Security Alert Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

A transactional security alert email for a new sign-in, written as a real email-safe template: nested tables, inline styles, MSO conditional comments and padded-cell buttons, with no frameworks, web fonts, icon fonts or JavaScript. A white card with a red top border sits on a near-black background and lists the device, browser, approximate location, IP address and time of the sign-in, followed by two clear choices. The patterns target Outlook (Windows desktop), Gmail (web and apps) and Apple Mail.

How it works

A hidden preheader (.ssa-preheader) sets the inbox preview text. The full-width table.ssa-wrapper paints the dark background, and table.ssa-container is limited to 560px with max-width; an MSO ghost table gives Outlook the same fixed width. The brand row shows a letter-spaced wordmark and a "View in browser" link.

The card starts with a round alert badge drawn as a table cell with a pink background and a bold exclamation mark, so no image or icon font is needed. The sign-in details use a real data table, table.ssa-details, with a caption and th scope="row" headers; values are set in a monospace stack so IP addresses and times line up. "Today, 09:42 UTC" keeps the sample relative to the send.

The two buttons use the fluid hybrid technique: each sits in an inline-block div.ssa-col with a 244px max-width, so they appear side by side on desktop and stack on phones even in clients that ignore media queries, while Outlook reads them from a two-cell ghost table. Each button is a padded table cell (td.ssa-btn-ghost and td.ssa-btn-danger) wrapping a block link, which Outlook renders reliably. A yellow note explains what "Secure my account" does, and the footer carries the postal address, alert settings and an unsubscribe link.

Customization

  • Replace #d93025 (alert red) in the top border, badge, label and td.ssa-btn-danger to match your danger color.
  • Change #111418 on table.ssa-wrapper for a lighter background; adjust the footer link color #c9d1d9 so it stays readable.
  • Fill the rows of table.ssa-details from your sign-in event: device, browser, geo-IP city and time.
  • Point the two button links at signed, single-use URLs for confirming the sign-in and starting account recovery.
  • .ssa-px and .ssa-pxb in style.css reduce side padding below 600px, and .ssa-col lets the buttons fill the width.

Use cases

  • Web apps: warn users about a new sign-in with device, browser, location, IP and time rows
  • Fintech products: offer This was me and Secure my account buttons right in the email
  • Account security flows: a red-bordered card on a dark background draws attention to the alert
  • Transactional email: a framework-free template that renders in Outlook with padded-cell buttons

Accessibility

Layout tables use role="presentation", while the details table keeps its semantics so screen readers announce each label with its value. The heading is an h1, buttons have verbs as labels, and all text meets 4.5:1 contrast. The meaning never depends on color alone: the badge, label and heading all say it is a security alert. style.css adds focus-visible outlines where supported.

Usage notes

The template uses no images, so it renders fully even with images blocked. Keep alerts like this free of marketing content; many providers require security notices to stay purely transactional.

New Sign-In Security Alert Email at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Email Templates
License
Free for personal and commercial use

Questions about this template

Can I use the New Sign-In Security Alert Email code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

New Sign-In Security Alert Email – free Pure CSS email template template
New Sign-In Security Alert Email · free Pure CSS email template template

More Email Templates

Email Verification Email – free Pure CSS email template template

Email Verification Email

Dark, email-safe confirm-your-email template with a big bulletproof verify button, a six-digit one-time code, expiry note and footer.

Feedback Survey Request Email – free Pure CSS email template template

Feedback Survey Request Email

Email-safe feedback request with a one-tap 1 to 5 rating row of links, an open survey button, a thank-you discount note and a compliant footer.

Newsletter Email with Featured Articles – free Pure CSS email template template

Newsletter Email with Featured Articles

Email-safe editorial newsletter with masthead, featured story, two-column article grid that stacks on mobile, quick links, sponsor slot and footer.

Re-engagement We Miss You Email – free Pure CSS email template template

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.

Product Launch Announcement Email – free Pure CSS email template template

Product Launch Announcement Email

Email-safe product launch template with a bold dark hero, product photo, three feature blocks with image icons, pricing note and a bulletproof Try it now button.

Order Confirmation Email – free Pure CSS email template template

Order Confirmation Email

Email-safe order confirmation template with order number, product rows with photos, totals table, shipping and billing addresses and a track order button.