fix bug check amount, use console to send mail