Password reset email template

Let people choose a new password, then tell them it changed. Two emails free to copy, with the best practices that keep accounts safe.

What your users receive

Reset your Acme passwordThe link expires in 1 hour.

Copy the code

The email itself. Paste it where your app builds the message, then replace Acme with your product name, {{email}} with the address and {{link}} with the reset link your app generates.

Subject: Reset your Acme password
<!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>Reset your Acme password</title>
</head>
<body style="margin:0;padding:0;background-color:#f4f4f5;">
  <div style="display:none;max-height:0;overflow:hidden;opacity:0;mso-hide:all;">The link expires in 1 hour.&#8199;&#65279;&#847;&#8199;&#65279;&#847;&#8199;&#65279;&#847;&#8199;&#65279;&#847;</div>
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#f4f4f5;">
    <tr>
      <td align="center" style="padding:32px 16px;">
        <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:480px;background-color:#ffffff;border:1px solid #e4e4e7;border-radius:8px;">
          <tr>
            <td style="padding:32px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:#18181b;">
              <h1 style="margin:0;font-size:22px;line-height:28px;font-weight:700;">Reset your password</h1>
              <p style="margin:12px 0 0;font-size:15px;line-height:22px;">Someone asked to reset the password of the Acme account for {{email}}. Click the button to choose a new one.</p>
              <table role="presentation" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td style="padding-top:24px;">
                    <table role="presentation" cellpadding="0" cellspacing="0" border="0">
                      <tr>
                        <td bgcolor="#18181b" style="border-radius:6px;">
                          <a href="{{link}}" target="_blank" style="display:inline-block;padding:12px 24px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:6px;">Choose a new password</a>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <p style="margin:24px 0 0;font-size:13px;line-height:20px;color:#52525b;">The link expires in 1 hour and works once.</p>
              <p style="margin:12px 0 0;font-size:13px;line-height:20px;color:#52525b;">Button not working? Copy this link into your browser:<br><a href="{{link}}" target="_blank" style="color:#52525b;word-break:break-all;">{{link}}</a></p>
              <p style="margin:12px 0 0;font-size:13px;line-height:20px;color:#52525b;">If you didn't ask for this, ignore this email: your password stays the same.</p>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>

What to put in the email

Someone who asks for a reset is locked out, and sometimes worried. The email should get them a new password in one click, and calm them down if they never asked for it.

  1. Lead with one button

    Put the button right under the heading, after one sentence. Name it after what happens next, "Choose a new password", rather than "Click here". A reset email has a single job: nothing else should compete with that button.

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

  2. Say which account it is

    Many people have several addresses, and sometimes several accounts on the same product. Name the product and the address the request was made for, so they know which password they are about to change.

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

  3. Reassure people who didn't ask

    Anyone can type someone else's address into a "Forgot password?" form. Say that nothing changes if they ignore the email: the password stays the same until someone uses the link. Without that sentence, people think their account has been hacked, or report the email as phishing.

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

  4. Never send a password

    Don't email the current password, and don't generate a new one to send. An email stays readable for years, gets forwarded and synced to every device. Send a link where the person chooses a password themselves. If you are able to send the current password, it means you store it in a form that can be read back, which is a problem of its own.

    Avoid

    Your new password

    Here is your new password for ada@example.com:

    k8Fz!2qW

    You can change it after signing in.

    Do

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

  5. Say how long the link lasts

    Write when the link expires and that it works once. Someone who opens the email the next day understands why the link fails, and asks for a new one.

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

  6. Add the full link as plain text

    Under the button, print the link as text that can be copied, for email apps that strip buttons or show text only. And send a plain-text version of the email along with the HTML: text-only apps use it, and spam filters trust emails that have one.

    Reset your password

    Someone asked to reset the password of the Acme account for ada@example.com. Click the button to choose a new one.

    Choose a new password

    The link expires in 1 hour and works once.

    Button not working? Copy this link into your browser:
    https://app.example.com/reset-password?token=ddCp76moRnu_nxzef6I4o2ueM7TTYmPNsB3F-n5-uyI

    If you didn't ask for this, ignore this email: your password stays the same.

Securing the reset link

The reset link is worth the password: whoever holds it takes over the account. Your app should create and check it with that in mind.

  1. Make it expire within the hour

    The email stays in the inbox long after the reset, and an inbox gets forwarded, shared or hacked. A link that still works months later hands the account to whoever finds it.

    An hour is a common choice, and NIST's guidelines cap emailed recovery codes at 24 hours. A reset takes longer than a sign-in, since people have to come up with a password or open their password manager: 30 to 60 minutes leaves them the time. Check the expiry again when the new password is submitted, not only when the page opens.

    1 hour: the link worksyears in the inbox
    1. 10:00Ada asks for a reset link
    2. 10:02She opens the email and the link
    3. 10:09She saves a new password in her password manager
    4. 11:00The link expires
    5. 2028Someone finds the email in a hacked mailbox: the link no longer works
  2. Accept it once, and cancel it when the account changes

    Cancel the link as soon as it has been used. Cancel older links when a new one is requested, so that only the latest email works. And cancel any pending link when the password or the email address changes in another way, from the account settings for example.

    AcmeCancelled
    Reset your Acme passwordCancelled: a newer link was requested at 10:05
    AcmeUsed
    Reset your Acme passwordCancelled: used at 10:09 to change the password
    AcmeCancelled
    Reset your Acme passwordCancelled: the password changed since
  3. Generate a token nobody can guess, and store only its hash

    Make the token with a cryptographic random generator, such as crypto.randomBytes(32) in Node.js or secrets.token_urlsafe(32) in Python, never from a counter, a timestamp or Math.random().

    Keep only its SHA-256 in your database and compare hashes when the link is opened. If the database leaks, it holds no working reset links. A fast hash is enough here: a random 256-bit token can't be found by trying.

    Avoid
    password_resets
    user  token
    42    ddCp76moRnu_…
    Do
    password_resets
    user  token_hash
    42    867d0ef77fbc…
  4. Build the link from your own address, never from the request

    If your app writes the link with the domain of the incoming request (the Host header), an attacker can ask for a reset for someone else while sending their own domain in that header. The victim receives a genuine email from you, and clicking the link sends the token to the attacker. This is called password reset poisoning.

    Take the address of your app from your configuration, never from the request.

    From the request
    `https://${req.headers.host}
      /reset-password?token=…`
    
    Host: evil.example
    → the token goes to evil.example
    From your settings
    `${process.env.APP_URL}
      /reset-password?token=…`
    
    APP_URL=https://app.example.com
    → always your own address
  5. Keep the token out of other sites' logs

    When the reset page loads a font, a chat widget or an analytics script from another site, the browser can tell that site which page it came from, and the token is part of that address. Send the Referrer-Policy: no-referrer header on the reset page, and keep third-party scripts off it.

    1. Ada opens app.example.com/reset-password?token=…
    2. The page loads a font, a chat widget, an analytics script
    3. Each of them receives the full address, token included
    4. The token sits in other companies' logs
    Response headers of the reset page
    Referrer-Policy: no-referrer

Protecting the "Forgot password?" form

The form is public, and it answers questions about your users if you let it.

  1. Show the same message for every address

    Whether the address has an account or not, show the same message. Otherwise anyone can find out who uses your product, then target them with phishing.

    Answer in the same time too. If the email is sent during the request, known addresses take longer to answer and the delay gives them away: send it in the background.

    Avoid
    app.example.com/forgot-password
    No account found for bob@example.com.
    Do
    app.example.com/forgot-password
    If an account exists for bob@example.com, we've sent it a link to reset the password.
  2. Email addresses that have no account

    When the address has no account, you can still send an email to it, saying so. It reveals nothing to whoever typed the address, since only the owner of the mailbox reads it, and it helps people who signed up with another address and wonder why nothing arrives.

    No account for this address

    Someone asked to reset the Acme password for bob@example.com, but there is no Acme account for this address.

    If it was you, maybe you signed up with another address. Try again with that one.

    If you didn't ask for this, ignore this email.

  3. Limit requests, but never lock the account

    Limit how many links an address and an IP can ask for, one a minute for example, and add a CAPTCHA if the form is attacked. Without a limit, a script can flood someone's inbox with reset emails sent from your domain.

    Don't lock the account after too many requests: anyone could then lock any user out by typing their address.

    Avoid
    app.example.com/forgot-password
    This account is locked after too many reset requests.
    Do
    app.example.com/forgot-password
    We've just sent a link to this address. You can ask for another one in 1 minute.

After the reset

Saving the new password is not the last step. What happens next decides whether a stolen account gets back to its owner.

  1. Send a notice that the password changed

    Email the account as soon as the password changes, after a reset or from the settings: the second template above. If someone else changed it, this email is how the owner finds out.

    Say when it happened, and what to do if it wasn't them: a way to secure the account and someone to contact. Never put the password in it.

    Your password was changed

    The password of the Acme account for ada@example.com was changed on November 17, 2026 at 10:04 UTC.

    If you made this change, you don't need to do anything.

    If you didn't, someone else may have access to your account. Choose a new password now: it signs out everyone else.

    Secure my account

    Can't get in any more? Write to support@example.com and we'll help you recover your account.

  2. Sign out the other sessions

    People often reset their password because they suspect someone else got in. If the intruder's session stays open, the new password changes nothing for them. Sign out every session when the password changes, or at least offer to.

    Sessions kept
    1. Someone signed in to Ada's account with her leaked password
    2. Ada resets her password
    3. Other sessions stay open
    4. The intruder is still signed in
    Sessions closed
    1. Someone signed in to Ada's account with her leaked password
    2. Ada resets her password
    3. Acme closes every session
    4. The intruder is signed out
  3. Send people to the sign-in page

    After the reset, show the sign-in page rather than signing the person in. The reset link only proves access to the mailbox: signing in directly would skip two-factor authentication, and anyone who gets into the mailbox would get into the account.

    Signed in by the link
    1. Someone gets into Ada's mailbox
    2. They reset her Acme password
    3. Signed in, two-factor step skipped
    Signed in by the form
    1. Someone gets into Ada's mailbox
    2. They reset her Acme password and sign in
    3. Stopped at the code from Ada's phone
  4. Let password managers save the new password

    Mark the new password field with autocomplete="new-password", and include the username in the form, in a hidden field if needed, with autocomplete="username". Password managers then offer a strong password and save it under the right account.

    The reset form
    <form method="post">
      <input type="hidden" name="username"
        autocomplete="username" value="ada@example.com">
      <input type="password" name="password"
        autocomplete="new-password">
    </form>

Getting it delivered

A reset email in spam is a user locked out of your product, who writes to your support or leaves.

  1. Send it from your own domain, under your product's name

    Send from an address on your domain, with your product as the sender name, set up with SPF, DKIM and DMARC: the DNS records that prove to Gmail, Outlook and Yahoo that the email comes from you. Keep these emails apart from your newsletters, so that complaints about a campaign don't weigh on them.

    Avoid
    noreply@send-7f3.example.net
    Reset your Acme passwordThe link expires in 1 hour.
    Do
    Acme <account@example.com>
    Reset your Acme passwordThe link expires in 1 hour.
  2. Turn off click tracking

    Click tracking replaces each link with a redirect through the email service's servers. The reset token then passes through their logs, and some company filters block the redirect. Nobody needs click statistics on a reset email.

    Click tracking on
    The link in the email
    https://click.mailer.example.net/
      ls/click?upn=u001.Kx8fQ2…
    → logged, then sent to your link
    Click tracking off
    The link in the email
    https://app.example.com/reset-password
      ?token=ddCp76moRnu_…
    → straight to your app

Send it with Kula

Kula sends password reset emails and other transactional emails from your own domain, through an API or SMTP, separately from your newsletters and without click tracking. Free up to 3,000 emails a month.

Start free