- Code: Select all
property emailAddress : “bob@mac.com"
property emailSubject : "Office Alarm!"
property newline : ASCII character (10)
if value of variable "emailBob” < 50 then
set emailBody to “Office alarm: " & value of variable "alarmCause" & newline
set emailBody to emailBody & "Current time: " & time string of (current date) & newline
send email to emailAddress with subject emailSubject with body emailBody
end if
Thanks,
Joe