Email templates

Path to function: Preferences > Email

Various events trigger an email to your users, such as their account being created or the account nearing its expiry date. These emails use templates which you can customise. If you have sub-organisations, you can configure different templates for the parent organisation and sub-organisations.

Available templates

  • Account created (activation): Sent to a new user when their account is created (individually or through bulk upload) without a password having been specified. The email prompts the user to activate their account. An administrator can also manually resend this email if a user still needs to activate.

  • Account moved: Sent when a user is moved into a different sub-organisation (or from a sub-organisation into the parent organisation), potentially changing the resources that they can access.

  • Account expiring: Sent when a user’s account approaches a scheduled expiry date.

  • Account created (password): Sent to a new user if their account is created through bulk upload with a password already specified.

  • Admin account activation: Sent to a new administrator user when their account is created.

  • Password change confirmation: Sent to a user if their password is changed.

  • Reset password: Sent to a user who has requested to reset a forgotten password.

The following guidelines use the account created (activation) template as reference, but all templates work in the same way.

Edit a template

Each template comes with default text. This can be a good starting point for editing, as the default text includes variables for inserting information such as the recipient’s username and the link to activate their account.

  1. Log in to OpenAthens Compass as an administrator.

  2. (Optional.) To configure a template for a specific sub-organisation, switch to the sub-organisation before you begin.

  3. Go to Preferences > Email templates.

  4. From the left sidebar, choose the template you want to edit.

    Email template called 'Account created (activation)'. Default values are entered into the fields 'From', 'Reply-to', 'Subject' and 'Message'. The 'Message' can include variables and HTML formatting. In the sidebar is a list of other templates. At the top of the page is a 'Save changes' button.
  5. Edit the reply address, subject line or body text of the email as required. You can add formatting and links by using the built-in toolbar.
    To insert personalised or changeable information (such as the name of the recipient), press the Insert field button. See Insert data fields for detail.

  6. Press Save changes when finished.

A revert button becomes available next to save when making changes, which will take you back to the default message if you need a fresh start. If you are a sub-administrator, this default may be one set by a higher level administrator.

Insert data fields

You can include information in the template such as the recipient’s username, the expiry date of their account or the name in the email signature. These data fields are displayed as placeholder variables. When the email is generated and sent, each variable is replaced with the appropriate value from the database.

See Email field codes for a complete list of the data fields available.

To insert a data field in the body text of the template, press the Insert field button while editing.

HTML toolbar at the top of the 'Message' field. The button 'Insert field' is highlighted.

A pop-up window opens, allowing you to choose the required field from a list. Press Insert field to confirm your selection.

Pop-up window titled 'Insert a field'. It shows a list of data variables and their names. Options visible include 'Account email', 'Account support email', 'Account support first names', 'Account support last name', 'Account support telephone', 'Activation code', 'Activation code expiry', 'Athens URL', 'Expiry date' and 'Organisation name'. There are also buttons labeled 'Insert field' and 'Cancel'.

You can also insert data fields manually by entering a field’s code (e.g. ${accountUsername}). Using this method, you can dynamically change the Subject field of the email as well as the body text. See Email field codes for the available field codes and their descriptions.

Add attachments

Once you save changes to a template, you have the option to add attachments to the email. This option is not available when the template is in its default state.

Attachments are limited to 2MB. Permitted file types include:

  • pdf

  • Word-processed documents (.doc, .docx, .odt)

  • Images (.jpg, .jpeg, .png, .bmp, .gif, .svg, .tif, .tiff, .ico)

  • Presentations (.ppt, .pptx, .odp)

  • Spreadsheets (.xls, .xlsxm, .ods)

  1. Save the changes to your template. An Attach a file button appears.

  2. Press Attach a file . You then see a file upload dialog.

    Pop-up dialog titled 'Upload and attach a file'. There is a 'Choose File' button, followed by buttons labeled 'Attach file' and 'Cancel'.
  3. Press Choose File and select a file from your computer. The file must be no bigger than 2MB.

  4. Press Attach file. The dialog closes and your attached file is shown in the template.

  5. To attach more files, repeat steps 2-4.

  6. Save your changes.

Attachments are virus checked on upload. However, virus scanning cannot be perfect and we recommend performing your own checks. Liability remains with the uploader.

Remove an attachment

  1. Open the template you want to edit. Current attachments are shown in the section Attachments.

    Top part of the 'Account created' template. The 'Attachments' field displays a single attachment, called 'Welcome message.doc'. There is a 'Remove attachment' button beside the name of the attachment.
  2. Press the Remove attachment icon beside each attachment you want to remove.

  3. Save your changes.

Set the scope of a template

If you have sub-organisations, a customised email template can apply to:

  • The current organisation only. If you customise a template for the parent organisation, the template applies only to that organisation. Any sub-organisations that don’t have their own customised template will use the default template. (This is the default setting)

  • The current organisation and its sub-organisations. If you customise a template for a parent organisation, sub-organisations that don’t have their own customised template will inherit the parent’s template

In both cases, if a template is customised specifically for a sub-organisation, the sub-organisation’s own template takes precedence.

  1. Open the template whose scope you want to change.

  2. Go to the Permissions tab. (This tab appears only if the template has been customised.)

    Permissions tab of the 'Account created' template. The option 'Applies to' can be set to either 'this organization only' or 'this organisation and all sub-organizations'. At the top of the page is a 'Save changes' button.
  3. Set Applies to to either this organisation only or this organisation and all sub-organisations.

  4. Press Save changes.

Revert changes to a template

You can remove customizations from a template. This will usually restore a template to its default state. If the template is in a sub-organisation that inherits templates from its parent, reverting customisation at the sub level will leave the sub-organisation with the parent template.

  1. Open the template you want to revert.

    'Account created' template. At the top of the page are three buttons - 'Attach a file', 'Revert to default' and 'Save changes'.
  2. Press the Revert to default button. A dialog opens, asking you to confirm this action.

    Pop-up dialog titled 'Do you want to continue'. A message reads, 'This will remove the current version of the template and revert to the default. This operation cannot be undone.' Following this are 'Continue' and 'Cancel' buttons.
  3. Press Continue. The template reverts to its default state. Any sub-organisations that inherit this template will also revert to the default.

Anything to watch out for?

  • If you draft your email text in word-processing software, avoid copying and pasting it directly into the template. Word processors can add hidden formatting that affects display of the final email.
    For simplicity, we recommend composing your text in the template editor. If you do use a word processor, either:

    • Copy and paste your text into the template. Select all of the text and press the Remove formatting button. Recreate any required formatting using the toolbar

      HTML toolbar at the top of the 'Message' field. The button 'Remove formatting' is highlighted.
    • First paste your text into a plain text editor such as Notepad, then copy it from there and paste it into the template. Recreate any required formatting using the toolbar

  • If you format a URL (such as the link to activate an account), ensure that the formatting covers the whole of the URL

  • The reply-to field can contain only one address

See also