Yeah, mail actions is definitely defined. It runs one time.
I don’t see anything in the log as to why it only runs once.
I did figure it out, the lead in to that splice of code was a switch
If (switch == ON)
It didn’t run because it needed .state
if (switch.state ==ON)