Creating an E-mail Notification Template

The Conditions and Actions for every Event Rule you create, including e-mail notifications, is saved in EFT Server's configuration file. Each time the administration interface connects, it reads in the configuration file. Multiple Event Rules and e-mail notifications can grow the configuration file quite large. If you expect to have numerous e-mail notifications that are basically the same (e.g., you have default text that you always want to appear in the body of the e-mail), you can define the body of the e-mail in an HTML file, then reference it in the body of the Edit Mail Template dialog box.

To create an e-mail notification template

  1. Create an HTML document that contains the text that will be the body of the e-mail notification. You can include any HTML tags and EFT Server variables. For example:

    <HTML>
    <BODY>
    <P>This message was sent to you automatically by GlobalSCAPE EFT Server on the following event: %EVENT.NAME%.</p>
    <HR>
    <P><B>Server Local Time:</B> %EVENT.TIME%</P>
    <P><B>Logon Name:</B> %USER.LOGIN%</P>
    <P><B>E-mail Address:</B> %USER.EMAIL%</P>
    <P><B>Home Folder:</B> %USER.HOME_FOLDER%</P>
    </BODY>
    </HTML>

  2. Define the e-mail adding each of the variables that you want. You can add your custom EFT Server administrator signature, your company's logo, any information that you need to pass on to the user, and so on. Be sure to include the opening and closing <html> and <body> tags. Use the interface to add variables and labels to the message.

  3. Copy and paste the message into a text file, and save it with an .htm extension.

    Review your tags carefully, however, since no HTML-code verification is performed. As a test, you can copy and paste the text into Notepad, save it with an .htm extension, and then open it in your browser.

  4. Save the file in a location that can be accessed by EFT Server. For example, name the file MailActionTemplate.htm, and save it in C:\Documents and Settings\All Users\Application Data\GlobalSCAPE\EFT Server Enterprise; On Windows 2008, Application Data files for all users are in a hidden folder named %systemroot%\ProgramData instead of under Documents and Settings\All Users\Application Data. (If you are logging into EFT Server over an Active Directory Site, the Event Rule engine is running as that logged-in user, so the user account must have access to the template.)

  5. Define the Event Rule and add the e-mail notification.

  6. In the Message box of the E-Mail Notification Message dialog box, type file:// and the path to the e-mail template, then click OK. For example, type:

    file://C:\Documents and Settings\All Users\Application Data\GlobalSCAPE\EFT Server Enterprise\MailActionTemplate.htm

    IMPORTANT: There can be no spaces or line breaks before or after the link!

    db_emailnotificationmessage_template.gif

  7. Click OK to add the notification to the Event Rule.

The referenced HTML file will appear in the body of the e-mail that is triggered by EFT Server. It is highly recommended that you do a test to be sure you get the results you want.