---
title: "Secure message email template"
description: "Tells a patient a message is waiting in their account, without putting it in email."
url: "https://nextmail.sh/email-templates/secure-message"
---

[Templates](https://nextmail.sh/email-templates.md)[Health and care](https://nextmail.sh/email-templates.md#health)

# Secure message email template

Tells a patient a message is waiting in their account, without putting it in email.

[Use this template](https://nextmail.sh/mail/templates?starter=secure-message) [Use this template](https://nextmail.sh/signup.md?next=%2Fmail%2Ftemplates%3Fstarter%3Dsecure-message)[Customize with AI](https://nextmail.sh/email-templates/generate.md?starter=secure-message)

- **From**
  Northwind <hello@example.com>
- **Subject**
  You have a new message from Meadowbank Health Centre
- **Preview text**
  Sign in to read it. For your privacy, it is not in this email.

![Preview of the Secure message template](https://nextmail.sh/email-templates/previews/secure-message-desktop.webp?v=91f5ea210538)

secure-message.txt

```
Sign in to read it. For your privacy, it is not in this email.

{{clinicName}}

You have a new message

{{senderName}} sent you a message.

For your privacy, we do not put messages in email. Sign in to read it and reply.

Sign in to read [{{signInUrl}}]

We never ask for your password by email. If you are unsure about this email, sign in the way you usually do instead of using the button.

You are receiving this because you have an account with {{clinicName}}.
```

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

About

## When to send it

Send it whenever a clinician or the care team writes to a patient through your portal. The email says who wrote but never what they said, and asks the reader to sign in to read and reply.

4 values to fill

## What each send fills in

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

| Placeholder | Kind | Required | Default |
| --- | --- | --- | --- |
| `{{clinicName}}` | Text | Required | None |
| `{{senderName}}` | Text | Optional | Your care team |
| `{{signInUrl}}` | Link | Required | None |
| `{{unsubscribeUrl}}` | Link | Optional | None |

API

## Send it from your code

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

```
import { init, nextmail } from '@nextmail/sdk' init({ apiKey: process.env.NEXTMAIL_API_KEY }) await nextmail.templates.create({  name: 'Secure message',  slug: 'secure-message',  starter: 'secure-message',  publish: true,}) const sent = await nextmail.templates.send('secure-message', {  from: 'Northwind <hello@example.com>',  to: 'maya@example.com',  props: {    clinicName: 'Meadowbank Health Centre',    signInUrl: 'https://example.com/patients/sign-in',  },}) console.log(sent.id, sent.status)
```

Health and care

## More templates like this

![Preview of the Appointment confirmed template](https://nextmail.sh/email-templates/previews/appointment-confirmed-desktop.webp?v=e1eb28058106)

### Appointment confirmed

Confirms an appointment with the clinician, the place or video link, and what to bring.

6 styles

![Preview of the Appointment reminder template](https://nextmail.sh/email-templates/previews/appointment-reminder-desktop.webp?v=4b952d9548b1)

### Appointment reminder

A reminder of an upcoming appointment that asks the patient to confirm or reschedule.

6 styles

![Preview of the Prescription ready template](https://nextmail.sh/email-templates/previews/prescription-ready-desktop.webp?v=a050f8a0e62c)

### Prescription ready

Tells a patient a prescription is ready to collect, with a reference and pickup hours.

6 styles

![Preview of the Enrolment confirmed template](https://nextmail.sh/email-templates/previews/enrolment-confirmed-desktop.webp?v=c920e26def09)

### Enrolment confirmed

Confirms a place on a course, with the start date and the details of the first lesson.

6 styles

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.

[Open mail](https://nextmail.sh/mail/inbox) [Get Started](https://nextmail.sh/signup.md)[How templates work](https://nextmail.sh/features/templates.md)
