Scripting lesson: email a list of all uploaded files

Syncplify.me Server! version: 3.1.21+

One of the ready-made script examples that is installed along with Syncplify.me Server! shows how to notify someone via email each time a file is uploaded. But what if you wanted to send only one email, at the end of the file transfer session, with the list of all files that were uploaded in such session?

You can easily do that with 2 simple scripts bound to 2 different event handlers.

First of all you will need a script bound to the “AfterFileUpload” event handler, to keep the list up to date:

Then you will need a script bound to the “OnSFTPClose” and “OnFTPSClose” event handlers, to send out the email when the user disconnects from either protocol:

That’s it. Easy and straightforward.

Print Friendly
Bookmark the permalink.

Comments are closed