modified sendmail.py so that it just sends the mail and accepts a message as a parameter