LUA Email Script not working
Posted: Wed Aug 27, 2014 1:42 pm
Hello,
I’m able to send email but the problem I have is the "elseif" section is not working because the Subject line is not coming through so I must still have a syntax issues in those last 2 sections. Any suggestions to help with the subject line would be greatly appreciated
if ("%Name" == "APMSS") then
c_SendMail ("APMSS_FTP_Alerts@company.com","APMSS File Uploaded","'%FileName' was uploaded please check the clients ftp directory on the share drive in the next few minutes","","SpamFilter HV")
c_SendMail ("mwheeler@company.com","NGRCM received your file","'%FileName' was received by our SFTP process","","SpamFilter HV")
elseif ("%Name" == "PFP") then
c_SendMail ("mwheeler@company.com,wheelscs@hello.com","PFP File Uploaded","'%FileName' was uploaded please check the clients ftp directory on the share drive in the next few minutes","","SpamFilter HV")
c_SendMail ("mwheeler@company.com,wheelscs@hello.com","NGRCM received your file","'%FileName' was received by our SFTP process","","SpamFilter HV")
end
I’m able to send email but the problem I have is the "elseif" section is not working because the Subject line is not coming through so I must still have a syntax issues in those last 2 sections. Any suggestions to help with the subject line would be greatly appreciated
if ("%Name" == "APMSS") then
c_SendMail ("APMSS_FTP_Alerts@company.com","APMSS File Uploaded","'%FileName' was uploaded please check the clients ftp directory on the share drive in the next few minutes","","SpamFilter HV")
c_SendMail ("mwheeler@company.com","NGRCM received your file","'%FileName' was received by our SFTP process","","SpamFilter HV")
elseif ("%Name" == "PFP") then
c_SendMail ("mwheeler@company.com,wheelscs@hello.com","PFP File Uploaded","'%FileName' was uploaded please check the clients ftp directory on the share drive in the next few minutes","","SpamFilter HV")
c_SendMail ("mwheeler@company.com,wheelscs@hello.com","NGRCM received your file","'%FileName' was received by our SFTP process","","SpamFilter HV")
end