Notification template variables
The email notifications sent by S-Filer Portal are built from the templates of a notification theme: a subject, a body and a common layout, the Layout template (framework.html). This page lists the variables that these templates can use.
See Also
To create a notification theme and edit its templates, see Managing Notification Themes.
Template syntax
Templates are written in HTML and evaluated with MVEL templates:
@{variable}inserts the value of a variable, for example@{userfullname}.- The MVEL tags
@if{},@elseif{},@else{},@foreach{},@code{}and@end{}can be used to show content conditionally, repeat content or define local variables. - The Layout template contains the
@{mailContent}placeholder, which is replaced by the body of the notification. The Layout and the body are then evaluated together, so they see the same variables. The subject is evaluated separately, with the same variables. - A variable that a notification does not provide is not an error: it is rendered as empty text. Test it with
@if{variable != empty}. The MVEL literalemptymatches a missing variable,null, an empty text or a text made only of spaces, and an empty list. - Some variables added in version 4.21.0 are only provided once the Version 4.21 version flag is enabled. Before that, they render as empty text (see New variables added to existing notifications). They carry the Version flag required badge in the tables of Variables by notification: the path, size and type of the files (
filePath,fileAbsolutePath,fileFullPath,fileSize,fileType),numberOfFiles, the upload, download, expiration and deletion dates of files and communities, the last activity date of a deleted community and of a file that will be deleted, anddeletedByandgenericReason. - The version flag also changes the format of two variables. Without it,
messagetorecipientsis wrapped in a ready-made HTML block with a Message from sender title (in thefile_available,file_available_comm,file_available_anonyanduser_sharenotifications), andorphanFilesandorphanFileInfosare ready-made HTML lists (<ul><li>…</li></ul>). With the flag, these variables contain the text only.
<p>Hello @{userfullname},</p>
@if{supportEmail != empty}
<p>Need help? Write to @{supportEmail}.</p>
@end{}Warning
Only the form variable != empty works. The reversed form empty != variable gives a wrong result in MVEL.
Server parameters used in templates
Some variables come from the server configuration. They can be changed in the Administrative Console (server configuration, Email section) or with the set-config command of the configuration CLI.
| Variable | Server parameter | Default value | Description |
|---|---|---|---|
solutionNameAvailable in4.21.0 + | Solution Namecfg.server.mail.notification.service.solution.name | S-Filer Portal | Name of the solution, used in the subjects and bodies of the base theme notifications. |
supportEmailAvailable in4.21.0 + | Support Email Addresscfg.server.mail.notification.service.support.email | empty | Support address. The base theme shows it in the footer of the notifications only when the parameter is not empty. |
smsIssuerAvailable in4.21.0 + | Issuer name (SMS service)cfg.server.sms.service.sms.issuer | S-Filer Portal | Name of the solution in the SMS verification code (sms_access_code). The SMS uses this variable rather than solutionName so that a shorter name of the solution can be set, since the text of an SMS must stay very short. |
The base theme of version 4.21.0 and later, and the themes cloned from it, use @{solutionName} and @{supportEmail} instead of a hard-coded name or address. A theme cloned from an older base theme uses these parameters only once the variables are added to its templates.
See Also
Common variables
Variables available in all email templates
These variables are available in the subject, the body and the Layout of every email notification, within the limits given in the description.
| Variable | Description |
|---|---|
userfullname | Full name of the recipient. For an email address recipient (anonymous), the email address; for a direct access, its email address followed by its masked code, for example olivia.chen@example.com (K7QF-****-****-T2XH), or its masked code alone when it has no email address. |
username | User name of the recipient. For an email address recipient (anonymous), the email address; for a direct access, its masked code. |
domainname | Domain of the recipient. Quick Send for an email address recipient (anonymous), Direct Access for a direct access. |
recipientAccountType | Type of recipient. See Recipient type. |
recipientAuthTypeAvailable in4.21.0 + | How the recipient signs in or is protected. See Recipient type. |
login_url | Login link of the recipient. For a direct access, the link opens the direct access login page with its code. For the alerts sent to the server alert address, the link opens the sign-in page without selecting a domain. Not provided for an email address recipient (anonymous). |
url | Link to use in the notification. For a user account, the login link, replaced by the link to the file when the notification concerns a file. For an email address recipient (anonymous), the download link of the file. Not provided for a direct access, nor for alerts. |
directAccessCodeAvailable in4.21.0 + | Code of the direct access, in every notification sent to a direct access (the code is also part of login_url). Not provided for other recipients. |
imagesurl | Base URL of the web interface, ending with /, used to load images. |
theme | Name of the web interface theme of the recipient, when one applies. |
notificationType | Type of the notification, as an uppercase constant (for example FILE_AVAILABLE_NODE). See Variables by notification. |
solutionNameAvailable in4.21.0 + | Name of the solution. See Server parameters used in templates. |
supportEmailAvailable in4.21.0 + | Support email address, empty if not configured. See Server parameters used in templates. |
instanceNameAvailable in4.21.0 + | Name of the server instance that raised the alert. Provided only for the alerts sent to the server alert address. |
dateFormatterAvailable in4.21.0 + | Tool that formats a date. See Formatting a date with dateFormatter. |
listsAvailable in4.21.0 + | Tool that groups, sorts and truncates lists, mainly used in the consolidated email. See Consolidated email. |
When the sender or the recipient of a file is a direct access, the sendername, senderfullname, recipient and recipientfullname variables give its email address, or < Direct access without email > when it has none. sendershortname gives its masked code.
Layout template
| Variable | Description |
|---|---|
mailContent | Placeholder replaced by the body of the notification. |
When a test email of the Layout is sent, notificationType is FILE_AVAILABLE_NODE.
Recipient type
@{recipientAccountType} gives the type of recipient:
| Value | Recipient |
|---|---|
regular_account | A user account. |
anonymous | An email address (file sent to an anonymous recipient). |
direct_access | A direct access. |
administratorAvailable in4.21.0 + | The server alert address (cfg.server.mail.notification.service.to.alert.address), for system alerts. |
@{recipientAuthType} Available in4.21.0 + indicates how the recipient signs in or is protected:
| Recipient | Values |
|---|---|
| User account | password (user name and password), sso (single sign-on, for an Active Directory domain whose authentication instance has single sign-on enabled) or federated (domain that signs in through an external identity provider). |
| Direct access | sms (verification code by SMS), email (verification code by email), password or none. |
File sent to an anonymous recipient (file_available_anony) | password or none. |
| Other anonymous recipients and alerts | none. |
Dates
Two forms for each date
Each date of a notification is provided in two forms:
- A
java.time.Instantobject (*Instantvariables), to sort or compare dates without parsing text. An unknown date givesnull. - A text ready to display (
formatted*variables), in the recipient's language and the server time zone, for example May 1, 2026 at 9:00 AM or 1 mai 2026 à 09:00. An unknown date gives an empty text.
| Date | java.time.Instant | Text |
|---|---|---|
| Upload of the file | uploadInstantAvailable in4.21.0 + | formattedUploadDateAvailable in4.21.0 + |
| Download of the file | downloadInstantAvailable in4.21.0 + | formattedDownloadDateAvailable in4.21.0 + |
| Expiration (file, community or account) | expirationInstantAvailable in4.21.0 + | formattedExpirationDateAvailable in4.21.0 + |
| Deletion (file or community) | deletionInstantAvailable in4.21.0 + | formattedDeletionDateAvailable in4.21.0 + |
| Last activity (community, file or account) | lastActivityInstantAvailable in4.21.0 + | formattedLastActivityDateAvailable in4.21.0 + |
| Adoption of the account | adoptionInstantAvailable in4.21.0 + | formattedAdoptionDateAvailable in4.21.0 + |
| End of the account | accountEndInstantAvailable in4.21.0 + | formattedAccountEndDateAvailable in4.21.0 + |
Each notification provides only the dates that concern it, for example uploadInstant for a file available and expirationInstant for a file that will soon be deleted. See Variables by notification.
Formatting a date with dateFormatter
@{dateFormatter} is available in all email templates. It formats one of the *Instant dates in the recipient's language and the server time zone:
@{dateFormatter.format(uploadInstant)}gives the same text asformattedUploadDate.@{dateFormatter.format(uploadInstant, 'd MMM, HH:mm')}uses a pattern of your choice, for example 12 May, 09:00. The pattern follows the syntax ofjava.time.format.DateTimeFormatter.
An unknown date gives an empty text.
<p>Uploaded on @{dateFormatter.format(uploadInstant, 'd MMM, HH:mm')}</p>Deprecated date in UTC: lastActivityDate
Warning
lastActivityDate is deprecated. It is provided with lastActivityInstant, by every notification that gives a last activity date, and always gives the date in UTC, in the same format as before, for example 05/01/2026 09:00:00 (UTC), so that existing custom themes keep working. New templates should use formattedLastActivityDate or lastActivityInstant.
File paths and recipients
Notifications that give the path of a file provide several variables:
| Variable | Description | Example |
|---|---|---|
filename | Name of the file. | report.pdf |
filePathAvailable in4.21.0 + | Path of the directory that contains the file, inside the community or the inbox, starting and ending with / (/ for a file at the root). | /Reports/ |
fileAbsolutePathAvailable in4.21.0 + | Path of the directory that contains the file, starting with the name of the community or inbox. | /Project Phoenix/Reports/ |
fileFullPathAvailable in4.21.0 + | Full path of the file, from the name of the community or inbox to the name of the file. | /Project Phoenix/Reports/report.pdf |
The file deleted, file will be deleted and file downloaded notifications also say where the file had been sent, with @{fileRecipientType} Available in4.21.0 + and @{fileRecipientName} Available in4.21.0 +:
fileRecipientType | The file had been sent to | fileRecipientName |
|---|---|---|
community | A community. | Name of the community. |
inbox | The inbox of the recipient of the email. | — |
user | The inbox of another user. | Full name of the user. |
anonymous | An email address. | The email address. |
Warning
A user account in @{recipient} is displayed as Jane Doe (jdoe), with a space before the parenthesis. Before version 4.21.0, it was displayed as Jane Doe(jdoe). A custom template that splits this value must take the space into account.
Variables by notification
In addition to the common variables, each notification provides the variables listed in its table; no other variable is provided. The headings below give the name of the template (as shown in the notification theme) and the value of @{notificationType}. The Version flag required badge marks a variable that is only provided once the Version 4.21 version flag is enabled (see Template syntax).
The sendername, sendershortname and senderfullname variables describe the sender of a file or invitation: the full name followed by the user name, the user name only, and the full name only.
File available in an inbox (file_available)
notificationType: FILE_AVAILABLE_NODE
Sent to the user account whose inbox received the file.
| Variable | Description |
|---|---|
filename | Name of the file. |
sendername, sendershortname, senderfullname | Sender of the file. |
messagetorecipients | Message of the sender. |
download_url | Download link of the file. |
file_url | Link to the file in the web interface (also given in url). |
filePath, fileAbsolutePath, fileFullPathAvailable in4.21.0 +Version flag requiredVersion 4.21 | Path of the file. See File paths and recipients. |
fileSizeAvailable in4.21.0 +Version flag requiredVersion 4.21 | Size of the file. |
uploadInstant, formattedUploadDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Upload date of the file. |
File available in a community (file_available_comm)
notificationType: FILE_AVAILABLE_COMMUNITY
Sent to the members of the community who can see the file. With the version flag, it is also sent to the direct accesses of the share space; download_url, file_url and url are then not provided.
Same variables as File available in an inbox, plus:
| Variable | Description |
|---|---|
community | Name of the community. |
communitydescription | Description of the community. |
File available to an email address (file_available_anony)
notificationType: FILE_AVAILABLE_ANONYMOUS
Sent to the email address that received the file (recipientAccountType is anonymous).
| Variable | Description |
|---|---|
filename | Name of the file. |
sendername, sendershortname, senderfullname | Sender of the file. |
sendermailaddress | Email address of the sender. |
messagetorecipients | Message of the sender. |
download_url | Download link of the file (also given in url). |
@{recipientAuthType} Available in4.21.0 + indicates whether the file is protected by a password (password) or not (none).
File downloaded (reception_acknowledge)
notificationType: RECEPTION_ACKNOWLEDGE
Sent to the sender of the file (a user account, or the direct access that deposited it).
| Variable | Description |
|---|---|
filename | Name of the file. |
recipient | Person who downloaded the file. |
recipientfullnameAvailable in4.21.0 + | Name of the person who downloaded the file: the full name of an account or, for an email address or a direct access, the same text as recipient. |
community | Name of the community in which the file was sent, or N/A. |
url, download_url, file_url | Links to the file. Not provided when the sender is a direct access. |
fileRecipientType, fileRecipientNameAvailable in4.21.0 + | Where the file had been sent. See File paths and recipients. |
fileAbsolutePath, fileFullPathAvailable in4.21.0 +Version flag requiredVersion 4.21 | Path of the file. This notification does not provide filePath. |
downloadInstant, formattedDownloadDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Download date of the file. |
File deleted (file_deleted)
notificationType: FILE_DELETED
Sent to the user whose inbox contained the file, to the administrators of the community when the community notifies deletions, and to the sender when the file is deleted during or right after its upload.
| Variable | Description |
|---|---|
filename | Name of the file or directory. |
sendername, sendershortname, senderfullname | Sender of the file. |
recipient | Recipient of the file. |
reason | Reason of the deletion. |
fileRecipientType, fileRecipientNameAvailable in4.21.0 + | Where the file had been sent. See File paths and recipients. |
filePath, fileAbsolutePath, fileFullPathAvailable in4.21.0 +Version flag requiredVersion 4.21 | Path of the file or directory. |
fileTypeAvailable in4.21.0 +Version flag requiredVersion 4.21 | FILE for a file, FOLDER for a directory. |
numberOfFilesAvailable in4.21.0 +Version flag requiredVersion 4.21 | Number of files deleted. |
deletionInstant, formattedDeletionDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deletion date. |
deletedByAvailable in4.21.0 +Version flag requiredVersion 4.21 | Full name of the person who deleted the file (for a direct access, its email address). Not provided when the file was deleted automatically. |
genericReasonAvailable in4.21.0 +Version flag requiredVersion 4.21 | true when reason only says that a community member or administrator deleted the file, so that a template that shows deletedBy can leave reason out; false otherwise. Provided with deletedBy. |
File will be deleted (file_will_be_deleted)
notificationType: FILE_WILL_BE_DELETED
Sent to the user whose inbox contains the file, or to the administrators of the community.
| Variable | Description |
|---|---|
filename | Name of the file. |
expire | Number of days before the deletion. |
reason | Reason of the deletion. |
fileRecipientType, fileRecipientNameAvailable in4.21.0 + | Where the file had been sent. See File paths and recipients. |
filePath, fileAbsolutePath, fileFullPathAvailable in4.21.0 +Version flag requiredVersion 4.21 | Path of the file. |
expirationInstant, formattedExpirationDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deletion date of the file. |
lastActivityInstant, formattedLastActivityDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Date of the last access to the file. |
lastActivityDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deprecated. Same date in UTC. See Deprecated date in UTC. |
Community deleted (community_deleted)
notificationType: COMMUNITY_DELETED
Sent to the members of the community.
| Variable | Description |
|---|---|
community | Name of the community. |
reason | Reason of the deletion. When a user deleted the community, the reason contains the user name of this user. |
lastActivityInstant, formattedLastActivityDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Last activity date of the community. Unknown if the community was never used. |
lastActivityDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deprecated. Same date in UTC. See Deprecated date in UTC. |
numberOfFilesAvailable in4.21.0 +Version flag requiredVersion 4.21 | Number of files deleted with the community. |
deletionInstant, formattedDeletionDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deletion date of the community. |
deletedByAvailable in4.21.0 +Version flag requiredVersion 4.21 | Name of the person who deleted the community. Not provided when the community was deleted automatically (inactivity, expiration or empty community). |
genericReasonAvailable in4.21.0 +Version flag requiredVersion 4.21 | true when reason only says that deletedBy deleted the community, so that a template that shows deletedBy can leave reason out; false otherwise. Provided with deletedBy. |
Community will be deleted (community_will_be_deleted)
notificationType: COMMUNITY_WILL_BE_DELETED
Sent to the members of the community.
| Variable | Description |
|---|---|
community | Name of the community. |
expire | Number of days before the deletion. |
reason | Reason of the deletion. |
lastActivityDateAvailable in4.20.0 + | Deprecated. Last activity date in UTC. See Deprecated date in UTC. |
lastActivityInstant, formattedLastActivityDateAvailable in4.21.0 + | Last activity date of the community. Unknown if the community was never used. |
expirationInstant, formattedExpirationDateAvailable in4.21.0 +Version flag requiredVersion 4.21 | Deletion date of the community. |
numberOfFilesAvailable in4.21.0 +Version flag requiredVersion 4.21 | Number of files in the community. |
Invitation to a share space (user_share)
notificationType: USER_SHARE
Sent to an existing user account added to a share space.
| Variable | Description |
|---|---|
inviter | Full name of the person who sent the invitation. |
community | Name of the share space. |
communitydescription | Description of the share space. |
messagetorecipients | Message of the inviter. |
The template editor also lists password for this notification, but the notification never provides it.
Direct access available (direct_access_available)
notificationType: DIRECT_ACCESS_AVAILABLE
Sent to the direct access (recipientAccountType is direct_access).
| Variable | Description |
|---|---|
directAccessCode | Code of the direct access. |
sendername, sendershortname, senderfullname | Person who created the direct access. Not provided if this person no longer exists. |
sendermailaddress | Email address of the person who created the direct access. Not provided if this person no longer exists. |
messagetorecipients | Message of the person who created the direct access, if any. |
community | Name of the share space that the direct access opens. Not provided when the direct access does not open a share space. |
@{recipientAuthType} indicates how the direct access is protected (sms, email, password or none).
Verification code by email (email_access_code)
notificationType: EMAIL_ACCESS_CODE
Sent to the user account or direct access that must enter the code.
| Variable | Description |
|---|---|
accessCode | Verification code. |
accessCodeValidityMinutes | Validity of the verification code, in minutes. |
Account will be locked and account will be deleted (account_will_be_inactive, account_will_be_deleted)
notificationType: ACCOUNT_WILL_BE_INACTIVE, ACCOUNT_WILL_BE_DELETED
Sent to the user account concerned.
| Variable | Description |
|---|---|
expire | Number of days before the account is locked or deleted. |
cleanupReason | Reason: EXPIRATION or INACTIVITY, and also ADOPTION for an account that will be deleted. |
expirationInstant, formattedExpirationDate | Date on which the account will be locked or deleted. |
lastActivityInstant, formattedLastActivityDate | Date of the last session of the account. |
lastActivityDate | Deprecated. Same date in UTC. See Deprecated date in UTC. |
adoptionInstant, formattedAdoptionDate | Adoption date of the account. |
accountEndInstant, formattedAccountEndDate | End date of the account. |
Password expires soon (password_expires_soon)
notificationType: PASSWORD_EXPIRES_SOON
| Variable | Description |
|---|---|
expire | Number of days before the password expires. |
Lost password (lost_password)
notificationType: LOST_PASSWORD
| Variable | Description |
|---|---|
password | New password. |
User created (user_created)
notificationType: USER_CREATED
| Variable | Description |
|---|---|
password | Generated password, or a text asking to contact the administrator for the password. |
User adopted (user_adopted)
notificationType: USER_ADOPTED
This notification has no variables of its own.
Invalid email address (anony_invalid_address)
notificationType: ANONYMOUS_INVALID_ADDRESS
Sent to the sender of a file when an email address recipient is invalid.
| Variable | Description |
|---|---|
sendername, sendershortname, senderfullname | Sender of the file, who is also the recipient of the email. |
mailaddress | Invalid email address. |
Certificate expired and certificate expires soon (certificate_expired, certificate_expires_soon)
notificationType: CERTIFICATE_EXPIRED, CERTIFICATE_EXPIRES_SOON
These alerts are sent to the server alert address (recipientAccountType is administrator). They provide instanceName and a login_url that opens the sign-in page.
| Variable | Description |
|---|---|
alias | Alias of the certificate. |
expire | Number of days before the certificate expires (certificate_expires_soon only). |
Orphan files alert (alert_orphan_files_deleted)
notificationType: ORPHAN_FILES_DELETED
This alert is sent to the server alert address (recipientAccountType is administrator). It provides instanceName and a login_url that opens the sign-in page.
| Variable | Description |
|---|---|
orphanFiles | Orphan files deleted from the storage, one per line, in the form GUID (storage). Without the version flag, an HTML list. |
orphanFileInfos | Orphan entries deleted from the database, one per line, in the form GUID (storage : file name). Without the version flag, an HTML list. |
storageOrphanFilesAvailable in4.21.0 + | The entries of orphanFiles split into columns: one line per file, with the storage and the GUID separated by a tab. |
databaseOrphanFilesAvailable in4.21.0 + | The entries of orphanFileInfos split into columns: one line per place the file had been sent, with the full path of the file (its name when the path is unknown), the storage and the GUID separated by tabs. |
The entries are HTML-escaped, since they contain names chosen by users.
Audit integrity check alert (alert_system_audit_integrity_check)
notificationType: SYSTEM_AUDIT_INTEGRITY_CHECK
This template is part of the notification themes, but no feature of version 4.21.0 sends this alert. Its template editor lists the variables of the other alerts (instanceName) and no variables of its own.
Consolidated email (consolidated_email)
notificationType: CONSOLIDATED_EMAIL
The consolidated email groups several notifications in a single email. Its variables are described in Consolidated email.
Verification code by SMS (sms_access_code)
notificationType: SMS_ACCESS_CODE
This template is an SMS: it has no subject and no Layout, and the common email variables are not available.
| Variable | Description |
|---|---|
smsIssuer | Name of the solution, from the Issuer name parameter of the SMS service. |
accessCode | Verification code. |
accessCodeValidityMinutes | Validity of the verification code, in minutes. |
notificationType | SMS_ACCESS_CODE. |
