fix send email snippet