script sendmail deploy