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

Use multiple from_address #1

Open
pkaramol opened this issue Jan 25, 2018 · 1 comment
Open

Use multiple from_address #1

pkaramol opened this issue Jan 25, 2018 · 1 comment

Comments

@pkaramol
Copy link

In order for me to use multiple from_address (e.g. to forward to the same address), do I need to re-deploy the entire stack?

How can I duplicate the lamdba function that was created?

@andrewkress
Copy link

In order for me to use multiple from_address (e.g. to forward to the same address), do I need to re-deploy the entire stack?

How can I duplicate the lamdba function that was created?

I added additional recipients to the SES rule. Then I changed line 13 in the lambda function so my email shows who was the intended initial address:

    // var email = msgInfo.content, headers = "From: "+forwardFrom+"\r\n";
    var email = msgInfo.content, headers = "From: "+msgInfo.mail.commonHeaders.to[0]+"\r\n";

this makes the from_address not used in this case.

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

2 participants