fix sendmail issue in testmail action