Receiving Notifications when Recipients Upload Files

EFT Server will populate the EFTAdHoc User Setting Template with the temporary user accounts as they are created.



If you have Event Rules to trigger on account creation or password change, those Rules are triggered when the temporary account is created.

The procedure below is for EFT Server Enterprise administrators only. This procedure is performed on the EFT Server Enterprise computer in the Administrator. EFT Server basic edition has no Timer Event Rule functionality. You cannot configure EFT Server basic edition to alert you on upload notifications of SAT users. If you send a SAT e-mail to a user, then that user uploads something back to you, there is no way to configure the “return upload” notification to let you know your temporary user has uploaded something for you to pick up. This functionality relies on a Timer Rule that is only available with EFT Server Enterprise.

Nor can you configure EFT Server basic edition to automatically remove expired SAT temporary accounts. The removal of the temporary accounts is triggered by the Timer Event running a script. The script is still available in EFT Server basic edition and you can run it manually to clean up expired accounts, but there is no Timer Event to have this happen automatically. You could also run the script with the Log Rotated Event so that the script is run daily, weekly, or monthly, depending on how often the log is rotated. (For more information about logs, refer to the EFT Server help topic Log Settings.)

The Secure Ad Hoc Transfer (SAT) module default installation handles the process of notifying your recipients when a file is sent. In addition, temporary accounts are disabled automatically one week after account creation.

To remove expired temporary accounts from EFT Server (including their home folder and any files contained within) automatically, and to receive notifications for files uploaded by recipients, you must configure EFT Server to do so, as described below.

The SendUploadNotification.wsf script contains two jobs, File Uploaded and Scheduler (Timer), that work together to send a notification mail to the account creator (the "From" e-mail address) whenever file(s) are uploaded into the temporary account. The Scheduler (Timer) job creates a hidden temporary file within the temp user's home folder indicating an upload is in progress. The Scheduler (Timer) job periodically queries the home folders for accounts and, if a temp file is found, a notification is sent to the account owner. The script uses the web.config for the SMTP configuration and the “WaitForUloadsDurationSecs” variable specifying the number of seconds to wait for uploaded files prior to sending e-mail notification. The script also requires the SendUploadNotificationMessage.tlt template located in the Templates directory.

The system is configured to notify the original sender any time the external recipient performs an upload. This is done by setting up the File Uploaded and the Scheduler (Timer) rules on EFT Server. The frequency of the Scheduler (Timer) rule governs how often the upload notifications are sent. You can edit the SendUploadNotificationMessage template file to be more descriptive. (This file is on the EFT Server computer, not the IIS computer.)

To receive notifications when recipients upload files

Part 1: Configure the “Send Upload Notification to Sender - On Upload” event rule

  1. If EFT Server and IIS are installed on separate computers, copy the EFTAdHoc folder (by default, C:\Inetpub\wwwroot\EFTAdHoc\) and its contents to the EFT Server computer.

  2. Open EFT Administrator and create a new custom command for cscript.exe (a Windows system file usually located at c:\windows\system32\cscript.exe) as illustrated below.  

  3. In the left pane, click Event Rules, then, in the right pane, click New. The Create New Rule dialog box appears.

  4. In the Event Rule Name box, type a name for the rule. For example, type Send Upload Notification to Sender.

  5. In the Description box, type a comment. (Optional)

  6. In the Select event trigger list, click File Uploaded.

  7. Click Create. The Event Rules tab appears.

  8. In the Conditions box, scroll to Connection Conditions, and double-click If Remote IP does match [ip mask]. The condition appears in the Rule pane.

  9. In the Conditions box, scroll to User Conditions, and double-click If Settings Template does equal. The condition is added next to the first condition, on the same line.

  10. In the condition If Remote IP does match [ip mask], click does once to change it to does not.

  11. If you are using the EFT Secure Ad Hoc Transfer Module, and if EFT Server and IIS are installed on the same computer, when creating the Event Rule for Upload Notifications, create an additional Condition for REMOTE IP does not match 127.0.0.1.

    The Rule’s Conditions should read:


    If Settings Template is EFTAdHoc
    AND If remote ip does not match <ip address of IIS server>

    AND If remote ip does not match 127.0.0.1


    The second Condition should
    not be added if EFT Server and IIS are not installed on the same computer.

  12. Click [ip mask]. The Edit Value dialog box appears.

  13. Type the IP address for the IIS host; click OK.

  14. In the condition If Settings Template does equal to [Settings Template], click [Setting Template]. The Select Settings Template dialog box appears.

  15. Click the down arrow to click the Settings Template used by Secure Ad Hoc Transfer (by default, EFTAdHoc), then click OK.

  16. In the Actions box, double-click Execute command in folder. The new action appears UNDER the new compound condition that you just created and is indented, as shown below.

  17. In the Action Execute command select in folder 'c:\', click select. The Custom Command dialog box appears.

  18. In the Select command drop-down list, click the name that you gave the cscript command.

  19. In the Specify command parameters box, type or paste the following text:

  20. SendUploadNotification.wsf //JOB:ON_UPLOAD %USER.LOGIN% %FS.VIRTUAL_PATH%

  21. In the Specify command working folder box, click the directory in which the script exists. The script is in the Scripts subdirectory of the Secure Ad Hoc Transfer installation folder if IIS and EFT Server are on the same system (C:\Inetpub\wwwroot\EFTAdHoc\Scripts) or the Scripts subdirectory of the folder you copied in step 1.

  22. Click OK to close the Custom Command dialog box.

  23. Click Apply to save the changes on EFT Server.

  24. Continue to Part 2, below.

Part 2: Configure the "Send Upload Notification to Sender - On Timer" Event Rule

  1. Create a new Rule using the Scheduler (Timer) Event.

  2. In the Actions box, double-click Execute command in folder to add it to the Rule pane.

  3. In the Rule pane, in the Execute command Action, click select. The Custom Command dialog box appears.

  4. In the Select command drop-down list, click the name that you gave the cscript command in Part 1.

  5. In the Specify command parameters box, type or paste the following text:

  6. SendUploadNotification.wsf //JOB:ON_TIMER

  7. In the Specify command working folder box, click the directory in which the script SendUploadNotification.wsf exists. (In the Scripts subdirectory of the Secure Ad Hoc Transfer installation folder if IIS and EFT Server are on the same system, C:\Inetpub\wwwroot\EFTAdHoc\Scripts, or the Scripts subdirectory of the folder you copied from the IIS computer.)

  8. Click OK to save the Command.

  9. Click Apply to save the changes on EFT Server.

Next, Create a Timer Rule to Remove Temporary Expired Accounts.