added sendmail script