Now my question is how can I use filename as a variable in c_sendMail() function.local filepath = "%LastDir"
local filename = string.sub(filepath,string.len(filepath)-string.find(string.reverse(filepath),"/")+2)
I have use below code, but this doesn't work.
c_SendMail("rupesh@mysite.com","Any Subject","Any Body - %filename","","smtp_opr")
The above code return %filename itself instead of value of filename.
Please suggest.