eleven41 / aws-lambda-send-ses-email Goto Github PK
View Code? Open in Web Editor NEWAWS Lambda function to send emails using Amazon SES
License: MIT License
AWS Lambda function to send emails using Amazon SES
License: MIT License
Hi guy,
Thank you for the public repos. I have an issues when I sent an email to a list email.
How can I hide other emails from the receiver?
Thanks and regards,
Hi,
I'm getting an invalid policy name error when creating the policy.
Can you assist please.
Would be great to have a Video tutorial on how to set this up from start to finish!
Hi,
I implemented your configuration but I have issue. I would like to launch automatic notification with value of Input Parameters to the test event and not parameters on the Config.js file .
With config.js :
var config = {
"templateBucket" : "JudesBucket",
"templateKey" : "Templates/Template.html",
"fromAddress": "[email protected]",
"targetAddress" : "[email protected]"
}
module.exports = config
With test event parameters input:
{
"name": "JuDes notification",
"email": "[email protected]"
"message": " test message"
}
Template.html :
Email: {{email}}
Name: {{name}}
{{message}}
On the Lambda Success message, I receive the success notification " email sent to [email protected]" . It will be correct if It was the case .... but it is not send for this address but for the targetAddress "[email protected]" on the config.js file.
I`m not able to comment targetAddress else i obtained error with requiere parameters.
Are you able to help me please,
Thanks by advance
Created my own ZIP as described with the provided code and added the mentioned Markup.js. However, there were some minor errors:
Once solved these it throws the "Cannot call method 'match' of undefined" error.
Here's the log:
START RequestId: 15c2b976-fa62-11e5-ae3d-eb178e7400bf Version: $LATEST 2016-04-04T12:38:08.765Z 15c2b976-fa62-11e5-ae3d-eb178e7400bf Event: {"email":"[email protected]","name":"Customer Name","message":"Hello World! Going to the moon!"} 2016-04-04T12:38:08.765Z 15c2b976-fa62-11e5-ae3d-eb178e7400bf Loading template from Templates/Template.html in mailtest.staticmailer.com 2016-04-04T12:38:09.405Z 15c2b976-fa62-11e5-ae3d-eb178e7400bf Template Body: ���2016-04-04T12:38:09.566Z 15c2b976-fa62-11e5-ae3d-eb178e7400bf TypeError: Cannot call method 'match' of undefined at Object.Mark.up (/var/task/markup.js:158:25) at Response.<anonymous> (/var/task/index.js:62:32) at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:354:18) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:77:10) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:596:14) at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:21:10) at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12) at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10 at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:37:9) END RequestId: 15c2b976-fa62-11e5-ae3d-eb178e7400bf REPORT RequestId: 15c2b976-fa62-11e5-ae3d-eb178e7400bf Duration: 892.83 ms Billed Duration: 900 ms Memory Size: 128 MB Max Memory Used: 16 MB Process exited before completing request
Any idea?
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.