Email Management

Email Management

Centova Cast sends email messages to the administrator, to resellers and to clients. Each message has a template. On the Emails page, you can change the subject and the content of each template, and turn each message on or off.

The templates on this page apply to the messages for all accounts that no reseller owns, including the reseller accounts. Each reseller has its own copy of the client templates for the client accounts that it owns. The reseller changes these copies on its own Emails page. Changes on your page do not change the copies of a reseller.

To open the Emails page, click Emails under the Settings menu icon in the navigation menu. A staff account must have the Manage emails permission to open this page.

Template List

The template list shows the templates of the locale that is selected in the Locale field on the toolbar. The list has these columns:

  • Title
    Shows the name of the message, for example Data transfer: Approaching limit. Centova Cast uses this name only in the control panel. The recipient does not see it.

  • Subject
    Shows the subject line of the email message.

  • Status
    Shows Enabled or Disabled. Centova Cast sends a message only if its template is enabled.

Note: On very narrow screens, the control panel does not show the Subject and Status columns.

The list contains one template for each message that Centova Cast can send:

  • Account messages: Streaming account created.
  • Data transfer and disk space messages for client accounts: Data transfer: Approaching limit, Data transfer: Limit exceeded, Data transfer: Account unsuspended, Disk quota: Approaching limit, Disk quota: Limit exceeded.
  • Data transfer and disk space messages for reseller accounts: Reseller data transfer: Approaching limit, Reseller data transfer: Limit exceeded, Reseller disk quota: Approaching limit, Reseller disk quota: Limit exceeded, Reseller account: Account unsuspended.
  • Stream messages: Bit rate limit exceeded, Server outage: Server restarted, Server outage: Restart failed, Song request received.
  • TLS certificate messages: TLS certificate expires soon, TLS certificate renewed, TLS certificate creation error, Server reload required.
  • Login and security messages: Password reset instructions, Email address confirmation, Two-factor verification code, Multi-factor authentication enabled, Multi-factor authentication disabled.

The data transfer limits, the disk quotas and the related actions are described in the Settings section.

Locales

Each template exists separately for each locale. The Locale field on the toolbar selects the locale of the templates in the list. When the page opens, the field shows the default locale of the server.

The field lists only the locales for which templates exist. Centova Cast supplies the templates in English (en_US). It adds the templates of another locale automatically, as a translation of the default templates. Centova Cast makes this translation at these times:

  • When you create, restore or move an account, or change its locale. Centova Cast does this only if the owner of the account has no templates in the locale of the account.
  • When you change the default locale of the server in the Settings section.
  • When it must send a message to an account, and no template exists in the locale of the account.

After that, the locale is in the list, and you can change its templates. Centova Cast can translate only into the locales that have a translation of the default templates.

To select the template for a message, Centova Cast tries these locales in this order, and uses the first template that it finds:

  1. The locale of the recipient's account.
  2. A new translation of the default template into the locale of the recipient's account.
  3. The locale of the reseller that owns the recipient's account.
  4. The default locale of the server.
  5. English (en_US).

Example: You change the Song request received template for English (en_US). Then you create a client account with the locale German (de_DE). Centova Cast adds German templates for all messages. When the client receives a song request, Centova Cast sends the German template, not your changed English text. To change the German message, select the German locale on the toolbar and edit its template.

Enabling and Disabling Messages

To stop Centova Cast from sending a message:

  1. Select one or more templates in the list.
  2. Click Disable on the toolbar.
  3. Click Yes in the confirmation dialog.

To send the message again, select the templates and click Enable. Keyboard shortcuts: press + to enable the selected templates, and - to disable them.

The status applies only to the template of the selected locale. To stop a message for all recipients, disable its template in every locale in the Locale list.

CAUTION: Do not disable the Password reset instructions, Email address confirmation or Two-factor verification code templates. Users then cannot reset their passwords, cannot change their email addresses, or cannot log in with verification codes from the Email two-factor authentication provider.

You cannot delete a template, and you cannot add a new template.

Editing a Template

To edit a template, click its row in the list. The template editor opens. Its title bar shows the subject, the title of the message and the locale.

The editor has these fields:

  • Subject
    Specifies the subject line of the email message. This field is required.

  • Insert
    Inserts a placeholder into the message. Click in the Message text field or the Message HTML field first. Then select a placeholder in this list. Centova Cast inserts the placeholder at the cursor position in the field that you used last. For more information, see the Placeholders section.

  • Reset to default (arrow icon next to Insert)
    Replaces the title, the subject, the text and the HTML of the template with the content that Centova Cast supplies. The default content is in English for all locales. The status of the template does not change. Click Yes in the confirmation dialog to reset the template. Centova Cast saves the reset immediately. You do not need to click Save.

  • Message text
    Specifies the plain-text version of the message. Mail programs that cannot show HTML messages show this text. This field is required.

    To copy the text into the Message HTML field, click the arrow icon at the bottom right of this field, and click Yes in the confirmation dialog. Centova Cast puts each line of the text into an HTML paragraph. The new HTML replaces the old content of the Message HTML field.

  • Message HTML (optional)
    Specifies the HTML version of the message. Most mail programs show this version. The field is a rich-text editor. If this field is empty, Centova Cast sends only the plain-text version.

    To copy the HTML into the Message text field, click the arrow icon at the bottom left of this field, and click Yes in the confirmation dialog. Centova Cast changes each HTML paragraph into a text paragraph and removes all other HTML code. The new text replaces the old content of the Message text field.

Click Save to save the template, or Cancel to close the editor without saving. If you changed the template and click Cancel, a dialog asks what to do: Save changes, Discard changes or Continue editing. Keyboard shortcuts in the editor: press Enter to save and Escape to cancel.

Placeholders

A placeholder is a variable name in double braces, for example {{ account.username }}. When Centova Cast sends the message, it replaces each placeholder with its value. In the example, the recipient sees the username of the account.

The default templates contain more placeholders than the Insert list. Some of these are necessary for the message, for example the confirmation link in the Password reset instructions and Email address confirmation templates, and the code in the Two-factor verification code template. Before you change a template, look at the placeholders in it. Keep each placeholder that the message needs.

The Insert list shows the placeholders in three groups. The Message group shows the placeholders that only some messages have. The Account group and the Settings group show the placeholders that apply to the recipient's account and to the server.

Settings group

Every template has these placeholders:

  • System locale - the default locale of the server.
  • Time zone - the default time zone of the server.
  • Notification email - the email address to which Centova Cast sends notifications for the administrator.
  • Sender email - the sender address of the email messages.
  • ACME email - the email address for the TLS certificate authority.
  • Site name - the site name from the server settings.
  • Organization name - the name of the organization that sends the message.

The Streaming account created template also has Stream hostname, Stream IPv4 address, Stream IPv6 address, Stream port and Secure port.

Account group

Every template has these placeholders for the recipient's account: Username, Real name or organization, Email address, Locale, Time zone, Account type, Account status.

Some templates have more account placeholders:

  • The limit placeholders Server type, Source type, Transfer limit, Disk quota, Maximum listeners, Mount point limit and Maximum bitrate are in the data transfer, disk quota, reseller, Bit rate limit exceeded and Streaming account created templates. The Data transfer: Account unsuspended template does not have them.
  • The stream placeholders Stream title, Stream website URL, Stream genre and Stream TLS method are in the Server outage: Server restarted, Server outage: Restart failed, Bit rate limit exceeded, Song request received and Streaming account created templates.
  • The reseller placeholders Reseller sender email and Reseller bandwidth limit in kbps are in the templates whose titles start with Reseller.

Message group

These templates have more placeholders:

  • Song request received: Requested artist and song, Requested artist, Requested song, Name of requester, Email of requester, Song dedication, IP address of requester.
  • Data transfer: Approaching limit and Reseller data transfer: Approaching limit: Actual data transfer.
  • Disk quota: Approaching limit and Reseller disk quota: Approaching limit: Actual disk usage.
  • Data transfer: Limit exceeded and Reseller data transfer: Limit exceeded: Actual data transfer, Action taken against account.
  • Disk quota: Limit exceeded and Reseller disk quota: Limit exceeded: Actual disk usage, Action taken against account.
  • Bit rate limit exceeded: Actual bitrate.
  • Password reset instructions: Password reset URL.