Fixed errors send mail