goes-notify icon indicating copy to clipboard operation
goes-notify copied to clipboard

Error when sending email via AWS SES

Open Do-while-Bacon opened this issue 5 years ago • 0 comments

ERROR: 06/17/2019 07:15:41 PM Failed to send succcess e-mail. Traceback (most recent call last): File "/home/user/Software/goes-notify/goes-notify.py", line 73, in notify_send_email server.sendmail(sender, recipient, msg.as_string()) File "/usr/lib64/python2.7/smtplib.py", line 750, in sendmail raise SMTPDataError(code, resp) SMTPDataError: (554, "Transaction failed: Duplicate header 'MIME-Version'.") Traceback (most recent call last): File "/home/user/Software/goes-notify/goes-notify.py", line 211, in main(settings) File "/home/user/Software/goes-notify/goes-notify.py", line 149, in main notify_send_email(dates, current_apt, settings, use_gmail=settings.get('use_gmail')) File "/home/user/Software/goes-notify/goes-notify.py", line 77, in notify_send_email log(e) NameError: global name 'log' is not defined

Here is my config. I use this SES account, and the same settings, with multiple other apps:

"email_from": "[email protected]", "email_to": ["[email protected]"], "email_server": "email-smtp.us-east-1.amazonaws.com", "email_port": 587, "email_username": "myawsaccount", "email_password": "hunter2",

"__comment": "Below are optional:", "use_gmail": false, "gmail_password": "", "no_email": false, "no_spamming": true,

Any ideas? Thanks!

Do-while-Bacon avatar Jun 17 '19 23:06 Do-while-Bacon