How to set up an email template to be sent to a certain type of candidate or client

You can have email templates set up to send to clients or candidates who are marked as a certain type.