fixing the sendmail bug