Skip to main content

Email settings

The Email Settings page lets you customise the subject line and body of the transactional emails Better Comply sends to learners. The email provider and sender identity are configured by your operator at the infrastructure level.

Who this is for

Administrators (Quality Admin, HR Admin, Corporate Admin). Team leads cannot access this page.

Opening Email Settings

Navigate to Email Settings in the sidebar. The page loads the available email templates.

Screenshot pendingEmail Settings page with the Invitation template selected

Available templates

TabPurpose
InvitationSent when a new user is invited to Better Comply
ReminderSent to remind a learner that a training is coming due
OverdueSent when a learner has an overdue assignment

Select a tab to edit that template. Each template has a Subject field and an Body field containing HTML.

Editing a template

  1. Select the template tab you want to change.
  2. Edit the Subject line text.
  3. Edit the Body HTML. The body is HTML - use standard HTML tags.
  4. Click Save to apply your changes.

The page shows the last-saved timestamp on the template card so you can see when it was last updated.

Previewing before saving

Click Preview (top right of the card) to switch from the HTML source view to a rendered preview. The preview substitutes placeholder values for the template variables so you can see how the email will look with real data. Click Edit to return to the source view.

Template variables

The following variables are available in both the subject and the body. Wrap the variable name in curly braces:

VariableReplaced with
{app_name}The product name (Better Comply)
{user_name}The learner's display name
{training_name}The name of the relevant training
{due_date}The assignment due date, formatted for the user's locale
{invite_link}The invitation acceptance link
{training_link}A direct link to the training

Not all variables are meaningful in every template. For example, {invite_link} is only relevant in the Invitation template.

Email provider and sender identity

The from address, sender name, and email provider (Resend or console) are set by your operator as environment variables on the server. These are not configurable in the UI.

No provider configured - console fallback

If no email API key is configured, Better Comply falls back to a console provider that logs messages to the server output instead of sending them. This is the default in development and staging environments with no provider set up. Emails will appear to send without error, but no message is actually delivered. Contact your operator to configure a real provider.

See Operations: email setup for the required environment variables.

How the weekly supervisor digest is handled

The weekly supervisor digest email is built server-side from a fixed localized template and is not editable through this page. Only the transactional learner emails (invitation, reminder, overdue) are customisable here. For information about the digest, see Weekly supervisor digest.