Update email send method, so it can be more easily extended