-
Notifications
You must be signed in to change notification settings - Fork 46
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
Only able to send mail with email address on config.js #3
Comments
I am not sure if I understand your question but have you tried this:
|
Hi Mickael, Thanks. you for your response. 👍 I moved email address as static environment variable on lambda and change the code to obtain the value by process.env.email to read the key-value "email" "[email protected]" . Now, I search how it is possible to give parameters to the templatebody with the field value {email} to read the process.env,email variable In index file : |
Add |
Does anyone have any documentation of steps to follow to make this work? I've couple of static sites and want to make this work desperately. Thanks a bunch in advance. ~P |
@prashantgijare There are step-by-step instructions on setting this up on the main README.md file. |
@prashantgijare - do you still need this? I finally got it to work end to end. My static website talks to my Gateway API which calls the lambda function to send the email. I also did some nice refactoring for the lambda code. I could put something together if you still need it. |
Yes. I do need it as I am just starting out with this. Thanks so much for
remembering abd getting back.
Prashant
On Wed, Dec 13, 2017 at 11:17 PM Antonio ***@***.***> wrote:
@prashantgijare <https://github.com/prashantgijare> - do you still need
this? I finally got it to work end to end. My static website talks to my
Gateway API which calls the lambda function to send the email. I also did
some nice refactoring for the lambda code. I could put something together
if you still need it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADu06fKo3NEuLW60BgAJLeG4hgRSVDcmks5tAKFGgaJpZM4Lk6yY>
.
--
Thanks! Prashant
|
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
The text was updated successfully, but these errors were encountered: