SESEmailForward icon indicating copy to clipboard operation
SESEmailForward copied to clipboard

Use multiple from_address

Open pkaramol opened this issue 7 years ago • 1 comments

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?

pkaramol avatar Jan 25 '18 16:01 pkaramol

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.

andrewkress avatar Jul 08 '19 14:07 andrewkress