Different email based on database criteria
I have a page which has an email getting sent out when form is submitted.
We may have a requirement where there are two different emails that would get sent, depending on particular criteria.
Is it possible to do something like this:
If field value = X send email A
else send email B