Skip to content

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 literal empty matches 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, and deletedBy and genericReason.
  • The version flag also changes the format of two variables. Without it, messagetorecipients is wrapped in a ready-made HTML block with a Message from sender title (in the file_available, file_available_comm, file_available_anony and user_share notifications), and orphanFiles and orphanFileInfos are 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.

VariableServer parameterDefault valueDescription
solutionName
Available in4.21.0 +
Solution Name
cfg.server.mail.notification.service.solution.name
S-Filer PortalName of the solution, used in the subjects and bodies of the base theme notifications.
supportEmail
Available in4.21.0 +
Support Email Address
cfg.server.mail.notification.service.support.email
emptySupport address. The base theme shows it in the footer of the notifications only when the parameter is not empty.
smsIssuer
Available in4.21.0 +
Issuer name (SMS service)
cfg.server.sms.service.sms.issuer
S-Filer PortalName 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.

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.

VariableDescription
userfullnameFull 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.
usernameUser name of the recipient. For an email address recipient (anonymous), the email address; for a direct access, its masked code.
domainnameDomain of the recipient. Quick Send for an email address recipient (anonymous), Direct Access for a direct access.
recipientAccountTypeType of recipient. See Recipient type.
recipientAuthType
Available in4.21.0 +
How the recipient signs in or is protected. See Recipient type.
login_urlLogin 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).
urlLink 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.
directAccessCode
Available 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.
imagesurlBase URL of the web interface, ending with /, used to load images.
themeName of the web interface theme of the recipient, when one applies.
notificationTypeType of the notification, as an uppercase constant (for example FILE_AVAILABLE_NODE). See Variables by notification.
solutionName
Available in4.21.0 +
Name of the solution. See Server parameters used in templates.
supportEmail
Available in4.21.0 +
Support email address, empty if not configured. See Server parameters used in templates.
instanceName
Available in4.21.0 +
Name of the server instance that raised the alert. Provided only for the alerts sent to the server alert address.
dateFormatter
Available in4.21.0 +
Tool that formats a date. See Formatting a date with dateFormatter.
lists
Available 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 ​

VariableDescription
mailContentPlaceholder 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:

ValueRecipient
regular_accountA user account.
anonymousAn email address (file sent to an anonymous recipient).
direct_accessA direct access.
administrator
Available 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:

RecipientValues
User accountpassword (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 accesssms (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 alertsnone.

Dates ​

Two forms for each date ​

Each date of a notification is provided in two forms:

  • A java.time.Instant object (*Instant variables), to sort or compare dates without parsing text. An unknown date gives null.
  • 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.
Datejava.time.InstantText
Upload of the fileuploadInstant
Available in4.21.0 +
formattedUploadDate
Available in4.21.0 +
Download of the filedownloadInstant
Available in4.21.0 +
formattedDownloadDate
Available in4.21.0 +
Expiration (file, community or account)expirationInstant
Available in4.21.0 +
formattedExpirationDate
Available in4.21.0 +
Deletion (file or community)deletionInstant
Available in4.21.0 +
formattedDeletionDate
Available in4.21.0 +
Last activity (community, file or account)lastActivityInstant
Available in4.21.0 +
formattedLastActivityDate
Available in4.21.0 +
Adoption of the accountadoptionInstant
Available in4.21.0 +
formattedAdoptionDate
Available in4.21.0 +
End of the accountaccountEndInstant
Available in4.21.0 +
formattedAccountEndDate
Available 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 ​

Available in4.21.0 +

@{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 as formattedUploadDate.
  • @{dateFormatter.format(uploadInstant, 'd MMM, HH:mm')} uses a pattern of your choice, for example 12 May, 09:00. The pattern follows the syntax of java.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 ​

Available in4.20.0 +

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:

VariableDescriptionExample
filenameName of the file.report.pdf
filePath
Available 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/
fileAbsolutePath
Available in4.21.0 +
Path of the directory that contains the file, starting with the name of the community or inbox./Project Phoenix/Reports/
fileFullPath
Available 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 +:

fileRecipientTypeThe file had been sent tofileRecipientName
communityA community.Name of the community.
inboxThe inbox of the recipient of the email.—
userThe inbox of another user.Full name of the user.
anonymousAn 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.

VariableDescription
filenameName of the file.
sendername, sendershortname, senderfullnameSender of the file.
messagetorecipientsMessage of the sender.
download_urlDownload link of the file.
file_urlLink to the file in the web interface (also given in url).
filePath, fileAbsolutePath, fileFullPath
Available in4.21.0 +Version flag requiredVersion 4.21
Path of the file. See File paths and recipients.
fileSize
Available in4.21.0 +Version flag requiredVersion 4.21
Size of the file.
uploadInstant, formattedUploadDate
Available 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:

VariableDescription
communityName of the community.
communitydescriptionDescription 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).

VariableDescription
filenameName of the file.
sendername, sendershortname, senderfullnameSender of the file.
sendermailaddressEmail address of the sender.
messagetorecipientsMessage of the sender.
download_urlDownload 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).

VariableDescription
filenameName of the file.
recipientPerson who downloaded the file.
recipientfullname
Available 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.
communityName of the community in which the file was sent, or N/A.
url, download_url, file_urlLinks to the file. Not provided when the sender is a direct access.
fileRecipientType, fileRecipientName
Available in4.21.0 +
Where the file had been sent. See File paths and recipients.
fileAbsolutePath, fileFullPath
Available in4.21.0 +Version flag requiredVersion 4.21
Path of the file. This notification does not provide filePath.
downloadInstant, formattedDownloadDate
Available 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.

VariableDescription
filenameName of the file or directory.
sendername, sendershortname, senderfullnameSender of the file.
recipientRecipient of the file.
reasonReason of the deletion.
fileRecipientType, fileRecipientName
Available in4.21.0 +
Where the file had been sent. See File paths and recipients.
filePath, fileAbsolutePath, fileFullPath
Available in4.21.0 +Version flag requiredVersion 4.21
Path of the file or directory.
fileType
Available in4.21.0 +Version flag requiredVersion 4.21
FILE for a file, FOLDER for a directory.
numberOfFiles
Available in4.21.0 +Version flag requiredVersion 4.21
Number of files deleted.
deletionInstant, formattedDeletionDate
Available in4.21.0 +Version flag requiredVersion 4.21
Deletion date.
deletedBy
Available 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.
genericReason
Available 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.

VariableDescription
filenameName of the file.
expireNumber of days before the deletion.
reasonReason of the deletion.
fileRecipientType, fileRecipientName
Available in4.21.0 +
Where the file had been sent. See File paths and recipients.
filePath, fileAbsolutePath, fileFullPath
Available in4.21.0 +Version flag requiredVersion 4.21
Path of the file.
expirationInstant, formattedExpirationDate
Available in4.21.0 +Version flag requiredVersion 4.21
Deletion date of the file.
lastActivityInstant, formattedLastActivityDate
Available in4.21.0 +Version flag requiredVersion 4.21
Date of the last access to the file.
lastActivityDate
Available 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.

VariableDescription
communityName of the community.
reasonReason of the deletion. When a user deleted the community, the reason contains the user name of this user.
lastActivityInstant, formattedLastActivityDate
Available in4.21.0 +Version flag requiredVersion 4.21
Last activity date of the community. Unknown if the community was never used.
lastActivityDate
Available in4.21.0 +Version flag requiredVersion 4.21
Deprecated. Same date in UTC. See Deprecated date in UTC.
numberOfFiles
Available in4.21.0 +Version flag requiredVersion 4.21
Number of files deleted with the community.
deletionInstant, formattedDeletionDate
Available in4.21.0 +Version flag requiredVersion 4.21
Deletion date of the community.
deletedBy
Available 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).
genericReason
Available 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.

VariableDescription
communityName of the community.
expireNumber of days before the deletion.
reasonReason of the deletion.
lastActivityDate
Available in4.20.0 +
Deprecated. Last activity date in UTC. See Deprecated date in UTC.
lastActivityInstant, formattedLastActivityDate
Available in4.21.0 +
Last activity date of the community. Unknown if the community was never used.
expirationInstant, formattedExpirationDate
Available in4.21.0 +Version flag requiredVersion 4.21
Deletion date of the community.
numberOfFiles
Available 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.

VariableDescription
inviterFull name of the person who sent the invitation.
communityName of the share space.
communitydescriptionDescription of the share space.
messagetorecipientsMessage of the inviter.

The template editor also lists password for this notification, but the notification never provides it.

Direct access available (direct_access_available) ​

Available in4.21.0 +

notificationType: DIRECT_ACCESS_AVAILABLE

Sent to the direct access (recipientAccountType is direct_access).

VariableDescription
directAccessCodeCode of the direct access.
sendername, sendershortname, senderfullnamePerson who created the direct access. Not provided if this person no longer exists.
sendermailaddressEmail address of the person who created the direct access. Not provided if this person no longer exists.
messagetorecipientsMessage of the person who created the direct access, if any.
communityName 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) ​

Available in4.21.0 +

notificationType: EMAIL_ACCESS_CODE

Sent to the user account or direct access that must enter the code.

VariableDescription
accessCodeVerification code.
accessCodeValidityMinutesValidity of the verification code, in minutes.

Account will be locked and account will be deleted (account_will_be_inactive, account_will_be_deleted) ​

Available in4.21.0 +

notificationType: ACCOUNT_WILL_BE_INACTIVE, ACCOUNT_WILL_BE_DELETED

Sent to the user account concerned.

VariableDescription
expireNumber of days before the account is locked or deleted.
cleanupReasonReason: EXPIRATION or INACTIVITY, and also ADOPTION for an account that will be deleted.
expirationInstant, formattedExpirationDateDate on which the account will be locked or deleted.
lastActivityInstant, formattedLastActivityDateDate of the last session of the account.
lastActivityDateDeprecated. Same date in UTC. See Deprecated date in UTC.
adoptionInstant, formattedAdoptionDateAdoption date of the account.
accountEndInstant, formattedAccountEndDateEnd date of the account.

Password expires soon (password_expires_soon) ​

notificationType: PASSWORD_EXPIRES_SOON

VariableDescription
expireNumber of days before the password expires.

Lost password (lost_password) ​

notificationType: LOST_PASSWORD

VariableDescription
passwordNew password.

User created (user_created) ​

notificationType: USER_CREATED

VariableDescription
passwordGenerated password, or a text asking to contact the administrator for the password.

User adopted (user_adopted) ​

Available in4.21.0 +

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.

VariableDescription
sendername, sendershortname, senderfullnameSender of the file, who is also the recipient of the email.
mailaddressInvalid 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.

VariableDescription
aliasAlias of the certificate.
expireNumber 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.

VariableDescription
orphanFilesOrphan files deleted from the storage, one per line, in the form GUID (storage). Without the version flag, an HTML list.
orphanFileInfosOrphan entries deleted from the database, one per line, in the form GUID (storage : file name). Without the version flag, an HTML list.
storageOrphanFiles
Available in4.21.0 +
The entries of orphanFiles split into columns: one line per file, with the storage and the GUID separated by a tab.
databaseOrphanFiles
Available 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) ​

Available in4.21.0 +

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) ​

Available in4.21.0 +

notificationType: SMS_ACCESS_CODE

This template is an SMS: it has no subject and no Layout, and the common email variables are not available.

VariableDescription
smsIssuerName of the solution, from the Issuer name parameter of the SMS service.
accessCodeVerification code.
accessCodeValidityMinutesValidity of the verification code, in minutes.
notificationTypeSMS_ACCESS_CODE.