diff --git a/files/main.py b/files/main.py index 8a86ca9..7847ba1 100755 --- a/files/main.py +++ b/files/main.py @@ -107,7 +107,7 @@ def smtp_send(content): mail_message['To'] = recipient smtp_server.sendmail(from_addr=smtp_from,\ to_addrs=recipient,msg=mail_message.as_string()) - delete mail_message['To'] + del mail_message['To'] smtp_server.quit() def redmine_request(path):