Fix bugs but send email seems not work