PingAccess

Customizing email notifications for certificate events

Modify the email notification templates used by SMTP notification publishers in PingAccess.

Modifying email notification templates

PingAccess creates notification messages based on template files located in the <PA_HOME>/conf/template/mail-notifications directory. Each template file is a combination of variables and HTML codes.

Using a text editor, you can modify the following template files to suit your branding requirements:

  • message-template-cert–expire

  • message-template-cert-warning

  • message-template-cert-test

Variables available across all templates
Variable Description

$escape

A utility class that can be used to escape String variables inserted into the template.

$baseUrl

Corresponds with the Administrator Server Base URL you specify in Notification settings.

Learn more about customizing PingAccess templates in User-facing page customization reference.

Localizing email notification templates

The pa-messages.properties file in the <PA_HOME>/conf/localization directory contains message-template-test* and message-template-cert* properties you can edit, but PingAccess can’t localize email messages.

This is because PingAccess usually determines a user’s locale from their browser. With email messages, PingAccess can’t determine which locale to use. Learn more about localization in PingAccess in User-facing page localization reference.