refactor mailer
add delegate mailer
add mailer api controller
add dispose to db call
add delegate email job