Can I write an IF statement to send an email?