Hello Tim,
I am not getting anything in the body of the email. Not sure why. Any insight?
ONDATE 1,“10 6 * * 1-6”,"@Entry1()"
ONDATE 2,“0 16 * * 1-6”,"@Entry2()"
Onchange “Test”,"@Testing()"
FUNCTION Entry1()
If Enable_Production_Email_1@ = 1 Then
$EmailTo$ = “josephm@unitedsalesinc.net”
$EmailCC$ = “josephm@unitedsalesinc.net”
$EmailSubject$ = “Daily Production Report”
$EmailBody$ = “”
$EmailBody$ = $EmailBody$ + “Bin Count Line 1/2 :” + STR$ Line_1_2_Dumped_Bins_Total@ + “Bins” +CHR$(13) + CHR$(10) // the CHR$(13) + CHR$(10) is the same as newline
$EmailBody$ = $EmailBody$ + “Bin Count Line 3 :” + STR$ Line_3_Dumped_Bins_Total@ + CHR$(13) + CHR$(10) // Second line of email
$EmailBody$ = $EmailBody$ + “Total Bin Count :” + STR$ Total_Bins_Dumped@ + CHR$(13) + CHR$(10) // Third Line of email… ect
$EmailBody$ = $EmailBody$ + “Total Box Count :” + STR$ Total_Boxes_Ran@ + CHR$(13) + CHR$(10) // Third Line of email… ect
$EmailBody$ = “”
// Want to include data such as graphs as an attachment? see: https://ewonsupport.biz/ebd/
$EmailAttachment$ = “&[$dtUF $fnreport_shift_1.html]”
$EmailContents$ = $EmailBody$ + $EmailAttachment$
SENDMAIL $EmailTo$, $EmailCC$, $EmailSubject$, $EmailContents$
Endif
ENDFN
FUNCTION Entry2()
If Enable_Production_Email_1@ = 1 Then
SENDMAIL “jasonp@unitedsalesinc.net”, “josephm@unitedsalesinc.net”, “FN lifts report”, “&[$dtUF $fnlifts_report.html]”
Endif
ENDFN
Function Testing()
$EmailTo$ = “jasonp@unitedsalesinc.net”
$EmailCC$ = “josephm@unitedsalesinc.net”
$EmailSubject$ = “Daily Production Report”
$EmailBody$ = “”
$EmailBody$ = $EmailBody$ + “Variable name” + STR$ test@ + “Bins” +CHR$(13) + CHR$(10) // the CHR$(13) + CHR$(10) is the same as newline
$EmailBody$ = $EmailBody$ + "Value of Second Tag is " + CHR$(13) + CHR$(10) // Second line of email
$EmailBody$ = $EmailBody$ + "Value of Third Tag is " + CHR$(13) + CHR$(10) // Third Line of email… ect
$EmailBody$ = $EmailBody$ + "Time: " + TIME$ + CHR$(13) + CHR$(10) // Gives the full date when this was sent
// Want to include data such as graphs as an attachment? see: https://ewonsupport.biz/ebd/
$EmailAttachment$ = “&[$dtUF $fnlifts_report.html]”
$EmailContents$ = $EmailBody$ + $EmailAttachment$
Endif
EndFN