My app is a jobs site. I’ve added a button which runs a search for “Jobs” which have an “expiry date < current date/time”. It then changes that Jobs “Status” to the text “Expired”.
That first part works great, but I would then like to send the “User” that created that “Job” an email to let them know it is expired. Here is what I’ve got so far but not working. Any ideas where I’m going wrong?