minor changes to send email feature