add debug mode to get more info why email send fail