TemplatesCommunity

Community digest email template

A weekly round-up of the four threads members replied to most, in ranked order.

From
Northwind <[email protected]>
Subject
This week in Saltmarsh Camera Club: Which second-hand lens for portraits under £300?
Preview text
The four threads members replied to most this week.
Preview of the Community digest template
community-digest.txt
The four threads members replied to most this week.

{{communityName}}

{{weekLabel}}

Top threads this week

These are the conversations members replied to most since last week.

01

{{threadTitle1}}

{{threadSummary1}}

02

{{threadTitle2}}

{{threadSummary2}}

03

{{threadTitle3}}

{{threadSummary3}}

04

{{threadTitle4}}

{{threadSummary4}}

Read the threads [{{communityUrl}}]

You get this digest once a week as a member of {{communityName}}.
Change how often you get this [{{settingsUrl}}]

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

About

When to send it

Send it once a week instead of a notice for every post. Each numbered thread has its title and a line on who started it and how many replied. One button leads back to the community, and a footer link lets members change how often it arrives.

13 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
{{communityName}}TextRequiredNone
{{weekLabel}}TextRequiredNone
{{threadTitle1}}TextRequiredNone
{{threadSummary1}}TextRequiredNone
{{threadTitle2}}TextRequiredNone
{{threadSummary2}}TextRequiredNone
{{threadTitle3}}TextRequiredNone
{{threadSummary3}}TextRequiredNone
{{threadTitle4}}TextRequiredNone
{{threadSummary4}}TextRequiredNone
{{communityUrl}}LinkRequiredNone
{{settingsUrl}}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: 'Community digest',  slug: 'community-digest',  starter: 'community-digest',  publish: true,}) const sent = await nextmail.templates.send('community-digest', {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    communityName: 'Saltmarsh Camera Club',    weekLabel: 'Week of 26 October',    threadTitle1: 'Which second-hand lens for portraits under £300?',    threadSummary1: 'Started by Priya Nair in Gear, 34 replies',    threadTitle2: 'Critique: fog on the river at dawn',    threadSummary2: 'Started by Tom Ellis in Critique, 21 replies',    threadTitle3: 'Printing at home or using a lab',    threadSummary3: 'Started by Amara Okoye in Printing, 18 replies',    threadTitle4: 'December walk: the old docks or the cathedral?',    threadSummary4: 'Started by Jonas Weber in Events, 15 replies',    communityUrl: 'https://example.com/community',    settingsUrl: 'https://example.com/community/settings/notifications',  },}) console.log(sent.id, sent.status)

Community

More templates like this

Preview of the Community welcome template

Community welcome

A welcome for new members with the guidelines in short and two numbered first steps.

6 styles
Preview of the Meetup announcement template

Meetup announcement

A meetup announcement for your list, with a date tile, the programme and a booking link.

6 styles
Preview of the Membership renewal template

Membership renewal

A renewal reminder with the end date, the price and what membership includes.

6 styles
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.

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.