start refactor sending email