Is it possible to email a user when a file has been uploaded to their directory? I know you can email someone when a file has been uploaded to the server, but how do you email a user when a file has been uploaded to their directory?
Thanks,
Jim
Email User When File Uploaded
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: Email User When File Uploaded
Hi,
Just use a simple lua script to handle it, like this:
if string.find("%PathName","d:/A/1") then
c_SendMail("test111@test.com","a file has been uploaded","%Name uploaded %PathName","","smtp1")
end
In the above example, if someone uploaded files into folder "d:/A/1", then email will be sent.
Just use a simple lua script to handle it, like this:
if string.find("%PathName","d:/A/1") then
c_SendMail("test111@test.com","a file has been uploaded","%Name uploaded %PathName","","smtp1")
end
In the above example, if someone uploaded files into folder "d:/A/1", then email will be sent.