TemplatesAccounts and access

New sign-in alert email template

A sign-in notice with the time, device and place, so people can recognise themselves.

Use this templateUse this templateAll templates6 values to fillPlain-text part included
From
Northwind <[email protected]>
Subject
New sign-in to your Northwind account
Preview text
New sign-in to your Northwind account
Preview of the New sign-in alert template
security-alert.txt
New sign-in to your {{productName}} account

New sign-in

Your {{productName}} account was signed in to. If this was you, there is nothing to do.

When

{{when}}

Device

{{device}}

Near

{{location}}

If it was not you, secure the account now. This link signs out every other session.

Secure my account [{{actionUrl}}]

{{footerNote}}

Shown with sample values. The HTML and plain-text tabs keep the placeholders.

About

When to send it

Send it when an account is signed in to from a new device. It lists when, on what and roughly where, says there is nothing to do if it was them, and offers one button for when it was not.

Values

What each send fills in

Required values have to come with every send. The rest fall back to the default shown here.

PlaceholderKindRequiredDefault
{{productName}}TextRequiredNone
{{when}}TextRequiredNone
{{device}}TextRequiredNone
{{location}}TextOptionalUnknown
{{actionUrl}}LinkRequiredNone
{{footerNote}}TextOptionalYou are receiving this because it affects your account security.

API

Send it from your code

Create a template from this design once, then send it with the values for each message.

send-security-alert.ts
import { init, openemail } from '@openemail/sdk' init({ apiKey: process.env.OPENEMAIL_API_KEY }) const template = await openemail.templates.create({  name: 'New sign-in',  starter: 'security-alert',  publish: true,}) const sent = await openemail.templates.send(template.slug, {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    productName: 'Northwind',    when: '1 October 2026 at 09:42 UTC',    device: 'Safari on macOS',    location: 'Lisbon, Portugal',    actionUrl: 'https://example.com/security',  },}) console.log(sent.id, sent.status)

Accounts and access

More templates like this

Preview of the Welcome template

Welcome

A sign-up welcome with a short greeting, one button to get started and the link written out underneath.

Preview of the Welcome card template

Welcome card

A compact welcome in a card, with one button back into the product.

Preview of the Verification code template

Verification code

A one-time code set large enough to read from another screen.

Preview of the Magic link template

Magic link

Passwordless sign-in with one button and the link printed as text.

Preview of the Password reset template

Password reset

A reset email with one button, a link to paste and a clear expiry.

Preview of the Password reset card template

Password reset card

A reset email that names the account and says plainly that nothing has changed yet.

Preview of the Team invitation template

Team invitation

An invitation that names the person inviting, the workspace and the role on offer.

Start from one

Pick a design, change anything,
and send it from your code.

Every template opens in the editor as blocks you can move, restyle or delete, and sends through the API with the values filled in.

Your inbox,
on your own terms.

Email infrastructure for businesses, AI, agents and personal email. Built for scale, privacy and control. Everything email should have had from day one.

OpenEmail

Email infrastructure for businesses, AI, agents and personal email. Built for scale, privacy and control. Everything email should have had from day one.

© 2026 OpenEmail. All rights reserved.