LUA Email Script Help
Posted: Fri Jun 15, 2012 4:06 pm
I am working on adding the LUA scripts on fileuploaded events. So far I have this code working:
But what I am wanting to do is for the body of the email is to be able to have the script read from a text file instead of having to write the entire content in the code.
For example.
c_SendMail("tmays@test.com","%FileName has been uploaded","readfrom("email.txt"),"Exchange")
Can someone help?
-TJ
Code: Select all
if string.find("%PathName","Testing/") then
c_SendMail("tmays@test.com","%FileName has been uploaded","%Name uploaded into %PathName","email.txt","Exchange")
c_SendMail("mays.tj@test.com","A File Posting Notification","Your file %FileName is available for retrieval.","","Exchange")
end
For example.
c_SendMail("tmays@test.com","%FileName has been uploaded","readfrom("email.txt"),"Exchange")
Can someone help?
-TJ