The program now sends mails, I deleted the password file because I dont want to save the password as plain text. The way to input the password now is with raw_input.