a bit more error checking on toEmail