Automating emails based on appointment

Hello,

Is there a way in Practice Better to send email content before or after a specific appointment?

e.g. if I wanted a specific email sent 7 days before a first appointment, or 1 day after an appointment.