fixed sendmail()