Please use the triggered email. (The automations does not think of a case that you will add your own code)