---
title: "Assignment due email template"
description: "A reminder that an assignment is due, with the deadline and a link to submit it. Send it a few days before a deadline to students who have not submitted yet."
url: "https://nextmail.sh/email-templates/assignment-due"
---

[Templates](https://nextmail.sh/email-templates.md)[Education](https://nextmail.sh/email-templates.md#education)

# Assignment due email template

A reminder that an assignment is due, with the deadline and a link to submit it.

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

- **From**
  Northwind <hello@example.com>
- **Subject**
  Essay 2 is due on Friday 20 November
- **Preview text**
  Submit it by 5:00 pm GMT from your course page.

![Preview of the Assignment due template](https://nextmail.sh/email-templates/previews/assignment-due-desktop.webp?v=a67d3f428549)

assignment-due.txt

```
Submit it by {{dueTime}} from your course page.

{{schoolName}}

{{assignmentName}} is due soon

Submit your work for {{courseName}} before the deadline so it is marked on time. If you have already handed it in, there is nothing more to do.

{{dueMonth}}

{{dueDay}}

Due by {{dueTime}}

{{dueDate}}

Submit your work [{{submitUrl}}]

Need more time? Talk to {{instructorName}} before the deadline rather than after.

You are receiving this because you are enrolled in {{courseName}}.
```

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

About

## When to send it

Send it a few days before a deadline to students who have not submitted yet. The due date and time sit on a calendar tile, and a note suggests asking for an extension early.

10 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 |
| --- | --- | --- | --- |
| `{{schoolName}}` | Text | Required | None |
| `{{courseName}}` | Text | Required | None |
| `{{assignmentName}}` | Text | Required | None |
| `{{dueDate}}` | Text | Required | None |
| `{{dueMonth}}` | Text | Required | None |
| `{{dueDay}}` | Text | Required | None |
| `{{dueTime}}` | Text | Required | None |
| `{{instructorName}}` | Text | Required | None |
| `{{submitUrl}}` | 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: 'Assignment due',  slug: 'assignment-due',  starter: 'assignment-due',  publish: true,}) const sent = await nextmail.templates.send('assignment-due', {  from: 'Northwind <hello@example.com>',  to: 'maya@example.com',  props: {    schoolName: 'Northfield College',    courseName: 'Introduction to Sociology',    assignmentName: 'Essay 2',    dueDate: 'Friday 20 November',    dueMonth: 'Nov',    dueDay: '20',    dueTime: '5:00 pm GMT',    instructorName: 'Dr Lena Fischer',    submitUrl: 'https://example.com/courses/sociology/essay-2/submit',  },}) console.log(sent.id, sent.status)
```

Education

## More templates like this

![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

![Preview of the Class starting soon template](https://nextmail.sh/email-templates/previews/class-starting-soon-desktop.webp?v=cf2f16258212)

### Class starting soon

A reminder shortly before a live class, with the join link and what to prepare.

6 styles

![Preview of the Certificate earned template](https://nextmail.sh/email-templates/previews/certificate-earned-desktop.webp?v=d233982e8ca0)

### Certificate earned

A centred certificate email for a finished course, with links to download and share it.

6 styles

![Preview of the New listing match template](https://nextmail.sh/email-templates/previews/new-listing-match-desktop.webp?v=b7d0a4e9ace0)

### New listing match

A new property that matches a saved search, with a photo, the price and the rooms.

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)
