if statements in email templates

This blog post mentions “Programmable Email” which sounds like the solution to this idea!