modified sendmail func
clean repo