Page 1 of 1
Email User When File Uploaded
Posted: Mon Jan 10, 2011 6:04 pm
by jushowi
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
Re: Email User When File Uploaded
Posted: Tue Jan 11, 2011 4:25 am
by FTP
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.