Email User When File Uploaded

Please post here if you have problems in using Wing FTP Server.

Email User When File Uploaded

Postby jushowi » Mon Jan 10, 2011 6:04 pm

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
jushowi
 
posts 1
 
joined Mon Jan 10, 2011 5:45 pm

Re: Email User When File Uploaded

Postby FTP » Tue Jan 11, 2011 4:25 am

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.
FTP
Site Admin
 
posts 1236
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests

cron