fix sendmail bug