Send an email after submission conditional logic