add smtp email class and fix email