commit before sending email