minor fixes to email send