KB Article #156485

How to include the filename in the subject of email notification?

Problem

How to include the filename in the subject of email notification?

Resolution

Change the following line in the xhtml email template used for notifications described in the "Velocity email notification package" chapter in ST Administrator's Guide (e.g. STHOME/conf/mailer-templates/FileReceived.xhtml):

    <!-- #set( $subject = "You have received a new file") -->

to

     <!-- #set( $subject = "You have received a new file: $DXAGENT_TARGET") -->

[NOTE] DXAGENT_TARGET is an ST environment variable that would return the value of the name of the transferred file.