How To: Create an Event that Sends an Email when the User Successfully Uploads a File
Can you give me a quick guide on creating an event that sends an email to a specific address whenever a user uploads a file that contains information of the file in the body of the email such as file name and if possible, file path?
Reasoning
Creating an email notification event for file uploads helps administrators monitor user activities in real time. Including file name and path details in the email ensures precise tracking and enhances security by alerting administrators about uploaded content immediately.
Answer
Follow the steps below to configure an event that triggers an email notification upon file upload:
Pre-Requisite
Steps
To: Email address of the recipient.
From: Email address of the sender/user.
You can utilize the user's email variables if their email address belongs to the domain configured in the SMTP settings under Domain > Server > Email tab.
Example: %USR.GENERAL.EMAILADDRESS%
CC: Email address of the carbon copy recipient - Optional
BCC: Email address of the blind carbon copy recipient - Optional
Subject: Subject line of the email
You can dynamically set subject line using variables.
Example: %USR.USERNAME% upload file successfully.
Body: Content of the email
-You can dynamically set Body message using variables.
Example: %USR.USERNAME% uploaded %FILEPATH.NAME% located on %FILEPATH.PTH% at %TIME% with the size of %FILESIZEMB%.
Attachment: File to attach to the email - Optional
Note: Use system variables to dynamically get the information needed.
To see the list of variables, navigate to: Domain > Server > Connection > Messages Tab and click Edit on any message listed below. Select and copy the variables from the dropdown and paste them into your event.