[IMP] refact mailer api