Not sure why this is not emailing out. ‘Enable Production Email’ is a Boolean and is a 1. I have tried the tag as a integer, with it being a 1, still wont email out. The scheduled actions log shows nothing being sent.
ONCHANGE “Enable_Production_Email”, “@SetDate()”
FUNCTION Entry1()
SENDMAIL “xx@xx.com”, “xx@xx.net,xx@xx.net”, “Production Performance Report”, “[$dtUF $fnreport_shift_1.html]”
ENDFN
FUNCTION Entry2()
SENDMAIL “xx@xx.net”, “xx@xx.net”, “FN lifts report”, “[dtUF $fnlifts_report.html]”
ENDFN
FUNCTION Entry3()
SENDMAIL “xx@xx.net”, “xx@xx.net”, “FN lifts report”, “[dtUF $fnlifts_report.html]”
ENDFN
FUNCTION SetDate()
IF (Enable_Production_Email@ = 1) THEN
ONDATE 1,“0 18 * * *”,"@Entry1()"
ONDATE 2,“0 16 * * *”,"@Entry2()"
ONDATE 3,“52 12 * * *”,"@Entry3()"
Print “Emails ON”
ELSE
ONDATE 1
ONDATE 2
ONDATE 3
Print “Emails OFF”
ENDIF
ENDFN