Samples for email notificaion configuration.Įxample 1. It will replace the default TO address in the Email Settings. In the file specified in the $email_file, you can use your own TO, CC and BCC addresses for people to receive this email. If you don't use $email_file parameter, Xlight FTP Server will generate a default email message. It is used to specify a file for customerizing email message. The parameter $email_file in the first line is not a condition. If all conditions in above are met, an email will be sent to notify that a file with extension *.exe or *.bat is uploaded in the virtual path /public or its sub-directories. $dir parameter restricts the upload directories to be in the virtual path /public or its sub-directories. The user upload action will then be checked against the $dir parameter. If a file with extension *.exe or *.bat is uploaded by a user, it can meet both OnFileUpload event and file type conditions of first line. In the figure above, OnFileUpload is the event of first line. You would better put lines with specific conditions in the top and lines with general conditions in the bottom.Įach line in the configuration file is checked from left to right. The sequence of lines in the configuration file will have impacts on the email notification. After finding a matched line, Xlight FTP Server will not check lines below it any more. If a line can pass the check, an email will be sent. FTP Server uses current action to check against event and conditions at every line of this configuration file. After a user uploaded, downloaded, deteled a file or when disk space is periodically checked in the virtual server, all these actions will cause FTP Server to check email notification configuration file preloaded in the memory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |