mardix / ses-mailer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I was trying to use this to send status emails from an EMR cluster, however the library wouldn't properly load the credentials set by the IAM role. It turns out because you force the providing of the aws_access_key_id and aws_secret_key here: https://github.com/mardix/ses-mailer/blob/master/ses_mailer.py#L127
Removing this condition allows boto to fall back to the default credentials provider chain and work properly. More details provided here: https://forums.aws.amazon.com/thread.jspa?messageID=539025
Here was the change that works now: https://github.com/ividata/ses-mailer/commit/1eacf2c6c884e5464e323c34a64c0ed909e81e2f
File .....view.py", line 331, in forgot_password
user_id=12739)
File .../ses_mailer.py", line 224, in send_template
mail_data = self.parse_template(template, **context)
File .../ses_mailer.py", line 245, in parse_template
blocks = self.template.render_blocks(template, **context)
AttributeError: 'NoneType' object has no attribute 'render_blocks'
What's user_id here ?
Getting this error when I try to send a mail. The email address is verified and they key is correct.
When I check
from ses_mailer import Mail
mail = Mail(aws_access_key_id="<KEY>", aws_secret_access_key="<KEY>", sender="<sender_email>", reply_to="<reply_to_email>")
mail.ses.host
I get
'email.us-east-1.amazonaws.com'
but my area isn't us-east-1, I need us-west-2.
Is there any way to change the host?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.