Customize the email notification templates

The templates are located in <FILEDRIVEHOME>/conf/mailer-templates. You can customize the email notification template with any text or HTML editor. An HTML editor is recommended because you can use it to preview the notification before deploying it in SecureTransport.

There are seven prerequisite fields that must be set in the XHTML email notification template.

  • $subject — The subject line for the email
  • $mailfrom — Who the email is coming from
  • $mailto — Who the email is going to
  • $mailserver — The name of the local SMTP mail server that will be used to deliver the email
  • $mailserverport — The TCP port on the SMTP server to connect to.
  • $smtpUser — A user to be used when authenticating to an SASL-enabled SMTP server.
  • $smtpPassword — Authentication password for the user specified in the smtpUser field.

The following code example shows an XHTML file with the prerequisites set:

<?xml version="1.0" encoding="windows-1252"?>

<!-- #set( $subject = "ST was unable to deliver a file to
<!-- #set( $mailfrom = "") -->
<!-- #set( $mailto = $DXAGENT_ACCOUNT_EMAIL) -->
<!-- #set( $mailserver = "") -->
<!-- #set( $mailserverport = "25") -->
<!-- #set( $smtpUser = "user") -->
<!-- #set( $smtpPassword = "password") -->

<html xmlns="">
   <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252" />

   <table border="0" bgcolor="#C0C0C0" width="100%">
      <tr id="areatop">
         <td style="text-align: left">Axway</td>
         <td style="text-align: right">SecureTransport</td>
      <tr id="areatopmain">
         <td colspan="2" align="center">
            File Delivery Failure
      <tr id="areabody" bgcolor="white">
         <td colspan="2">
            Delivery of the file <b>$DXAGENT_TARGET</b> to the host
            <b>$DXAGENT_SITE_ATTR_HOST</b> failed after
            <b>$DXAGENT_PERSISTED_EVENT_RETRY_COUNT</b> attempts.
            <p>Inspect the File Tracking Page in the ST Administration Tool
            for more information on the reason for the failure.</p>

Note You can hard code the values directly into the email notification template or you can use any SecureTransport environment variable. In the previous example the mailfrom address is hard coded into the template, but the mailto address is calculated at runtime from the $DXAGENT_ACCOUNT_EMAIL variable.
Any value set in the Invocation Parameter for the TM rule overrides the value set in the notification template.

Related Links