TemplatesEducation

Assignment due email template

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

From
Northwind <[email protected]>
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
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.

PlaceholderKindRequiredDefault
{{schoolName}}TextRequiredNone
{{courseName}}TextRequiredNone
{{assignmentName}}TextRequiredNone
{{dueDate}}TextRequiredNone
{{dueMonth}}TextRequiredNone
{{dueDay}}TextRequiredNone
{{dueTime}}TextRequiredNone
{{instructorName}}TextRequiredNone
{{submitUrl}}LinkRequiredNone
{{unsubscribeUrl}}LinkOptionalNone

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 <[email protected]>',  to: '[email protected]',  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

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

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

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

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.