fix one import error and one email send error

i had saw the weixin module, just fix some bugs.