Skip to content

Only able to send mail with email address on config.js #3

@JulDes

Description

@JulDes

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": "judes@mydomain.com",
"targetAddress" : "test@mydomain.com"
}
module.exports = config

With test event parameters input:
{
"name": "JuDes notification",
"email": "julie@mydomain.com"
"message": " test message"
}

Template.html :

Email: {{email}}
Name: {{name}}

{{message}}

On the Lambda Success message, I receive the success notification " email sent to julie@mydomain.com" . It will be correct if It was the case .... but it is not send for this address but for the targetAddress "test@mydomain.com" 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions