Writing a broadcast: audience, layout, attachments, send or schedule
Describes Newsletters 0.8.0.
A broadcast is one email sent to an audience: everyone holding chosen roles, or the members of a CRM contact list. You write it in Markdown and watch a live preview as you type.
Where to find it
In the admin sidebar, open Newsletters and click New broadcast (/admin/newsletters/broadcasts/new). To continue a draft, open it from the broadcasts list and click Edit.
You need a role with the Newsletters permission. To send or schedule you also need Send broadcasts, which sits under Newsletters in a role’s permissions; without it the form only saves drafts. The module must be switched on under Admin > Modules.
Writing a broadcast, with its preview beside it.
The form
- Subject: the email’s subject line.
- Send to: Roles or CRM list. CRM list only appears when the CRM module is installed and you have the CRM permission.
- With Roles, tick one or more roles. A line under them counts the users and how many are sendable, have no email, or are unsubscribed or opted out. A warning appears if a role that was picked has since been deleted.
- With CRM list, choose a list in Select a list…. A line counts its members in the same way. An archived list shows This list is archived and cannot be sent to.
- Layout: the wrapper the email is sent in. Standard email layout uses the site’s normal email look. Manage layouts opens the Layouts page in a new tab. New broadcasts start with the default layout, if one is set on the Layouts page.
- Attachments: Add files opens the media picker, up to 10 files. Each file shows its name and size and can be removed. A warning appears when they add up to more than 7 MB, as large attachments can slow delivery.
- Content (Markdown): the body, with a formatting toolbar.
The Preview on the right shows the email as it will be sent, inside the chosen layout. When the site has more than one language, a Language menu previews each language’s layout.
Saving, sending and scheduling
- Save draft stores the broadcast without sending it. The message says Broadcast saved as Draft.
- Send now saves the draft and starts sending at once, then opens the broadcast’s details page with Broadcast is being sent. The button stays disabled until there is a subject, a body and an audience with at least one sendable recipient. There is no confirmation step.
- Schedule: pick a date and time in the box next to it, then click Schedule. A line under the box confirms the time in your time zone and in UTC. The time must be in the future. The time zone is the one in your user profile, or the site’s.
If a send is refused, a message says why, for example Nobody in this audience can receive it right now, so nothing was sent. or Write the email body before sending.
How it goes out
Each recipient gets a personal copy in their own language when the layout has one. Opted-out, deactivated and trashed people are left out, and the list is checked again just before each email, so someone who unsubscribes during a long send gets nothing. Every email carries an unsubscribe link; if the body and layout don’t have one, a small Unsubscribe line is added at the end.
Sending runs in the background at the pace of the site’s default email send profile.
What it doesn’t do
- Only a draft can be edited. A scheduled broadcast has to be sent Back to draft from its details page first.
- You can’t choose a send profile or sender on the form; the default send profile is used.
- There is no test send to a single address from this page.
For developers
Sending needs the Oban queue newsletters_delivery. mix phoenix_kit.install and mix phoenix_kit.update add it, and mix phoenix_kit.doctor reports it missing. Without that queue nothing is ever sent.