Skip to main content

Adding macros to messages

You can use M4macros that expand to text strings, in the language of the user, in notification messages. The macros can include HTML code to enhance the display of message content. The M4 system and requirements are detailed in the About the user interface .

The psntfsvc.m4 file in <Program Files path>\Bravura Security\Bravura Security Fabric\<instance>\ design\ src\z\ includes the following pre-defined macros:

Macro tag name

English text

EXPIRY_NONCOMP_MSG

Your password will expire in [%DAYS%] days.

EXPIRY_THANKS_MSG

Thank-you for changing your password.

EXPIRY_ACTION_MSG

You have exceeded the maximum number of reminders for this notification, no further reminders will be sent.

QAREG_NONCOMP_MSG

You have not completed your question & answer registration.

QAREG_THANKS_MSG

Thank-you for completing your question & answer registration.

QAREG_ACTION_MSG

You have exceeded the maximum number of reminders for this notification, no further reminders will be sent.

To use M4 macros, type the corresponding tag, beginning with !!!, in the relevant field in the Configure notification plugins pages; for example:

!!!EXPIRY_NONCOMP_MSG

After you click Update, the Displayed value of the M4 macro is shown as it appears in the message sent to users. You can use this to verify that you have entered the correct macro without triggering a notification message. For example, the tag shown in the example above has the following Displayed value:

Your password will expire in [%DAYS%] days.

To learn how to:

  • Add HTML code to enhance the display of the message content, see Change the layout .

  • Modify the text defined by the m4 macros, see Altering text .

    The message subject line for batch notifications can contain macros that expand to text, but you cannot include HTML code in the subject.