How can I automate an email in function of the client choice?