send email before committing