send mail: fixing error message