fix sendmail.py