Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending email via AWS SES #10

Open
Do-while-Bacon opened this issue Jun 17, 2019 · 0 comments
Open

Error when sending email via AWS SES #10

Do-while-Bacon opened this issue Jun 17, 2019 · 0 comments

Comments

@Do-while-Bacon
Copy link

Do-while-Bacon commented Jun 17, 2019

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": "myawsemail@mydomain.com",
"email_to": ["mypersonalemail@gmail.com"],
"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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant