Account Activity and Security Alert Emails: Templates for New Logins, Password Changes and Suspicious Activity (2026)
A security alert email is a transactional message triggered by a state change that affects account access or identity — a new-device sign-in, a password change, an MFA method added, an API key created — and its job is to give the account owner a fast, unambiguous way to confirm "that was me" or act if it wasn't. This guide gives you three copy-ready templates for the most common cases, plus the decisions that matter more than the copy: when to send, what to put in the variables, and how to keep the message from looking like the phishing emails it's meant to warn about.
What counts as a security alert email (and what doesn't)
A security alert is triggered by a change in who can get into an account. New device or location sign-in, password or email address change, MFA method added or removed, recovery email changed, API key or token created or revoked. Routine product notifications — a comment on a post, a weekly digest, a plan upgrade — are not security alerts even when they mention the account.
The distinction matters because the two categories have different delivery rules. Security alerts are transactional in nature: they should not be mixed into marketing sends, and they should not be suppressed by marketing unsubscribe logic. A user who unsubscribes from your newsletter still needs to know their password changed. If you route alerts through the same list as campaigns, one unsubscribe click can silently disable the messages that protect the account.
The reader's job here is narrow and specific. These emails exist to be read in ten seconds and acted on in five. Everything else — brand voice, upsell, product news — is noise that makes the alert slower to parse.
For a wider view of the market, our ranking of the Best Email Marketing Platforms shows what each service really costs for your number of contacts.
When to send each alert — and when to stay quiet
| Event | Send? | Urgency | Notes |
|---|---|---|---|
| New device or browser sign-in | Yes | Immediate | Include device, browser, approximate location, local time |
| Sign-in from a new country or IP range | Yes | Immediate | Consider higher-friction copy and a stronger recovery CTA |
| Password changed | Yes | Immediate | Send to the account email; also trigger the new-device alert if applicable |
| Password reset requested, not completed | Yes | Lower | Useful early warning; keep it short |
| Email address changed | Yes | Immediate | Send to both the old and the new address |
| MFA method added or removed | Yes | Immediate | State which method changed |
| API key or token created | Yes | Immediate | Developer-facing products; include key name, not the key value |
| Repeated failed sign-in attempts | Yes | Batched | One email per window, not per attempt |
| Routine login from a known device | No | — | Alerting here trains users to ignore you |
Two rules that don't fit neatly in a table. First, rate-limit failure alerts: if someone is fuzzing your login endpoint, an email per attempt turns your own alerting into a denial-of-service vector against the user's inbox. Batch by window — one message per hour, or per day, with a count. Second, security alerts should bypass quiet hours and send-time optimization. A message that waits until 9 a.m. local time to tell someone their password changed is not an alert.
Template 1: New device or new location sign-in
Subject: New sign-in to your {{product_name}} account
Preview: {{device}} · {{approx_location}} · {{timestamp_local}}
Hi,
Your {{product_name}} account was accessed from a new device.
Device: {{device}} ({{browser}})
Location: {{approx_location}}
Time: {{timestamp_local}}
Method: {{auth_method}}
If this was you, no action is needed.
If you don't recognize this sign-in, secure your account now:
[ Secure my account ] -> {{secure_account_url}}
That link will sign out all other sessions and let you set a new password.
You're receiving this because a sign-in event occurred on your account.
Manage which alerts you receive: {{alert_preferences_url}}
Adaptation notes:
- Approximate location, not coordinates. IP geolocation resolves to a city or region at best, and mobile carrier IPs and VPNs routinely resolve to a different city than the user is in. Phrase it as "near Amsterdam, Netherlands" or "Amsterdam area" so a user on a VPN doesn't read it as a breach. Never show the IP address alone — pair it with the human-readable location, or leave it out.
- Shared and corporate devices. If your product is used on shared machines, the "new device" signal is noisy. Consider suppressing the alert when the sign-in comes from an IP that has authenticated successfully before, even if the device fingerprint is new.
- The "this was me" path should require nothing. No confirmation button, no link. Requiring a click to say "it was me" adds a step that most users skip, which makes your engagement metrics on this template meaningless.
Template 2: Password change confirmation
Subject: Your {{product_name}} password was changed
Preview: Changed on {{timestamp_local}} from {{approx_location}}
Hi,
Your password was changed on {{timestamp_local}}.
Method: {{change_method}} (changed in settings / reset via email link)
Location: {{approx_location}}
Device: {{device}}
Other active sessions: {{session_state}} (signed out / left active)
If you made this change, you're all set.
If you didn't, your account may be compromised. Use this link to revert
the change and sign out all sessions:
[ Secure my account ] -> {{recover_account_url}}
This link expires in {{expiry_window}}. If you need help, contact
{{support_email}}.
Adaptation notes:
- Be explicit about sessions. "Other sessions were signed out" versus "other sessions remain active" is the single most common source of follow-up support tickets after a password change. Pick one behavior in your product and state it in the email.
- Say what happens if the user does nothing. In most implementations the change stands and the recovery link expires. Say so, because "act now" without a consequence is easy to ignore.
- Pair it with Template 1. If the password change was initiated from a new device, the user should get both messages. They answer different questions — "someone got in" and "someone changed the lock" — and users who receive only one tend to assume the other didn't happen.
Template 3: Suspicious activity or blocked sign-in
Subject: We blocked a sign-in attempt on your {{product_name}} account
Preview: {{attempt_count}} attempts from {{approx_location}} were blocked
Hi,
We detected {{attempt_count}} failed sign-in attempts on your account
from {{approx_location}} between {{window_start}} and {{window_end}}.
What we did: {{action_taken}}
(blocked the attempts / required an additional verification step /
temporarily rate-limited sign-ins)
Your account is currently {{account_state}}. (accessible / locked)
If this was you and you're having trouble signing in, reset your
password here:
[ Reset my password ] -> {{reset_url}}
If this wasn't you, secure your account:
[ Secure my account ] -> {{secure_account_url}}
Questions? Contact {{support_email}}.
Adaptation notes:
- State the account state. "Unusual activity detected" with no follow-up leaves the reader unsure whether they can still log in. One word — accessible or locked — removes the ambiguity.
- Don't send this for non-existent accounts. If the alert is triggered by attempts against an email address that isn't in your system, sending it confirms which addresses are registered. Stay silent.
- Locked-out copy is a different email. When the account is locked, the primary action is recovery, not review. Don't make a locked-out user hunt for the reset link.
If you're still building out the surrounding lifecycle, the patterns in account created confirmation emails and password reset templates cover the messages that sit either side of these alerts.
Personalization that actually helps (and the kind that backfires)
The variables worth investing in are the ones that reduce ambiguity: {{device}}, {{browser}}, {{approx_location}}, {{timestamp_local}}, {{ip_address}}, {{auth_method}}, {{account_email}}. Each one answers a question the user is already asking.
The timezone problem. Store timestamps in UTC, render them in the user's timezone, and label the zone in the output — "14:32 CET" not "13:32". When the timezone is unknown, fall back to UTC and say so explicitly ("14:32 UTC"). An unlabeled timestamp in a security alert is worse than no timestamp, because the user can't tell whether it matches the moment they logged in.
Don't over-personalize. Inserting a full name into a security alert makes the message feel warmer, and it also makes a spoofed copy of that message more convincing. Keep greetings neutral — "Hi" or the account email address — and put the specificity into the security details instead. The same logic applies to your sender name and domain: consistency is the signal users learn to trust.
If you're starting from nothing, Mailerflow's transactional email API sends on a high-priority lane with templates and variables, which is the right lane for these messages, and the AI email builder can generate a responsive base design from a description if you'd rather not hand-build the layout.
Subject lines and preview text that survive a crowded inbox
| Template | Subject | Preview text |
|---|---|---|
| New device | New sign-in to your account | Chrome on macOS · Amsterdam · 14:32 CET |
| New device | New device signed in to your account | If this wasn't you, secure your account now |
| Password change | Your password was changed | Changed today at 14:32 CET from Amsterdam |
| Password change | Password updated on your account | No action needed if this was you |
| Suspicious | We blocked a sign-in attempt | 6 attempts from Warsaw in the last hour |
| Suspicious | Sign-in attempt blocked on your account | Your account is still accessible |
| Email change | Your account email was changed | Sent to both your old and new address |
| MFA | Two-factor authentication was updated | Authenticator app added on 2 Dec |
Principles behind these: lead with the event, not the brand; keep the subject under roughly 50 characters where you can; skip exclamation marks and urgency words, because they match the pattern of the phishing emails your users are being trained to delete. Preview text should add information the subject doesn't carry, not repeat it. Set it explicitly — most sending platforms have a dedicated preview field, and leaving it blank hands the job to whatever the first line of body copy happens to be.
What not to write: "URGENT: Your account has been compromised!!!" It reads as phishing, it's likely to be reported as spam, and it gives the user no information they can act on.
Mistakes that turn a security alert into a phishing lookalike
- Sender domain doesn't match the login domain. If users sign in at
app.example.com, alerts should come fromexample.comor a clearly related subdomain — not a third-party sending domain they've never seen. - Link shorteners and opaque tracking redirects. The visible destination should be your domain. If a security alert's button points at
t.co/...or a long redirect chain, you've reproduced the exact pattern users are told to distrust. - Attachments. There is no reason for a security alert to carry one.
- Asking for credentials in a reply. Never. Not even to "verify" the report.
- Burying the action button. If the primary CTA sits below a promotional block, the user has to scroll past marketing to secure their account.
- Inconsistent sender names across alert types. Pick one and use it everywhere.
- No plain-text alternative. Some clients and some security-conscious users read text only.
- Broken authentication. Missing or misconfigured DKIM, SPF and DMARC means your alert lands in spam precisely when it matters. Mailerflow supports own-domain sending with guided DKIM, SPF and DMARC setup and automatic verification, plus suppression of bounces and complaints — a security alert that bounces is a security alert that never arrived.
FAQ
Should security alerts respect unsubscribe preferences? No. Keep them transactional and outside marketing consent, but give users a separate alert-preferences page where they can tune which alerts they receive. The one thing they shouldn't be able to switch off is the alert that tells them their credentials changed.
How quickly should a new-login alert send? Immediately. Batching new-login alerts to reduce volume defeats the purpose, because the value is in the user seeing it while the session is still fresh. Batch only failure-attempt alerts, and only by window.
Should I include the IP address? Yes, but always alongside a human-readable location. An IP alone means nothing to most users; a city plus an IP gives both the quick read and the detail a support agent will ask for.
What if the user's timezone is unknown? Fall back to UTC and label it as UTC in the rendered output. An unlabeled timestamp is ambiguous, and ambiguity in a security alert generates support tickets.
Can I reuse the password reset template for password change confirmations? No. A reset email is a request the user made and expects; a change confirmation is a notification they may not expect at all. The copy, the urgency and the recovery path are different, so keep them as separate templates.
How do I test these without spamming real users? Send to internal addresses across the clients your users actually read — Gmail, Outlook, Apple Mail, a mobile client — and check that variables render, the button URL is visible on hover, and the plain-text part is readable. Then trigger each event in a staging environment and confirm the right template fires.
Once the templates are written, the remaining work is wiring them to real events with reliable delivery. The Mailerflow developer docs cover the REST API, scoped keys, idempotency keys and the JS SDK — enough to send your first alert end to end.
Send your first transactional email with the Mailerflow REST API — scoped keys, idempotency and an OpenAPI spec. Start free.


