Skip to content

Password Reset Email

Email-safe password reset template with lock image, VML bulletproof button, expiry note, fallback link, security notice and request details.

Also known as: password reset, forgot password email, reset password link email, account recovery email

Password Reset Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

An email-safe password reset template for web apps and fintech products, built with HTML tables and inline styles only. A centered white card shows a round lock image, a clear "Reset your password" heading, a VML-backed bulletproof button, the link expiry, a copy-and-paste fallback link, a "Didn't request this?" security note and a table of request details.

How it works

The hidden .pr-preheader sets the preview line in the inbox. The .pr-wrap table paints the cool gray page and .pr-container holds a slightly narrower 560px card, wrapped in MSO conditional comments as a fixed 560px table for Outlook desktop. All styles are inline, and backgrounds are repeated as bgcolor attributes.

The lock is an <img> with width/height attributes, display:block and a light indigo ring. The call to action uses two versions of the same button. Outlook on Windows reads the v:roundrect VML shape inside <!--[if mso]>, which draws a real rounded, filled button. Every other client skips that block and renders the .pr-btn link inside <!--[if !mso]><!-->, styled as an inline-block with a fixed width and line-height.

Below the button, a dashed box repeats the reset URL as plain text in .pr-link with word-break:break-all, so a long token wraps on phones. The amber security note uses a left border and an <h2>, and the request details table lists the time, device, approximate location and IP address.

The optional style.css adds a hover color and focus ring for .pr-btn, and a mobile media query that tightens .pr-pad and .pr-outer, shrinks .pr-h1 and stretches .pr-btn to full width.

Customization

  • Brand color: replace #4338ca in the card top border, the logo square, .pr-btn, .pr-link and the fillcolor of the v:roundrect.
  • Button label or size: change the text in both the VML <center> and .pr-btn, and keep width:260px and the height in sync in both versions.
  • Expiry: edit "60 minutes" to match your token lifetime; keep it relative so the email never shows a stale date.
  • Lock image: swap the src for your own icon. The photo comes from Unsplash; replace it with your own artwork at 192x192.
  • Request details: fill the rows from your auth service (time, user agent, geo-IP) or delete rows you do not track.
  • Card width: change max-width:560px on .pr-container and the width="560" of the MSO table together.

Use cases

  • Web apps: send a reset link with a clear heading and a bulletproof button
  • Fintech products: an expiry note and security notice help protect account owners
  • SaaS accounts: a copy-and-paste fallback link works when the button is blocked
  • Security flows: a table of request details shows where the reset was asked from

Accessibility

Layout tables use role="presentation", the wrapper declares lang="en", and real <h1> and <h2> elements structure the message. The fallback link gives screen reader and keyboard users a second, visible way to reset. The security note uses text, not only color, and all text meets WCAG AA contrast on its background.

Usage notes

The patterns target Outlook 2016-2021 and Microsoft 365 on Windows (VML button), Outlook.com, Gmail (web and apps), Apple Mail and iOS Mail. Add the xmlns:v namespace to your <html> tag for older Outlook builds, copy style.css into a <style> block in the <head>, and replace sample-token with the real one-time token from your backend.

Password Reset Email at a glance

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

Questions about this template

Can I use the Password Reset 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.

Password Reset Email – Pure CSS email templates component screenshot
Password Reset Email · Pure CSS Email Templates

More Email Templates

Email Verification Email – Pure CSS email templates preview

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 – Pure CSS email templates preview

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 – Pure CSS email templates preview

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 – Pure CSS email templates preview

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.

Order Confirmation Email – Pure CSS email templates preview

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.

New Sign-In Security Alert Email – Pure CSS email templates preview

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.