Created
October 2, 2017 21:46
-
-
Save pbzona/f5986b5e823dfa6aadff512e1597dc22 to your computer and use it in GitHub Desktop.
Function declaration of getEmailMessage in serverless contact form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getEmailMessage (emailObj) { | |
var emailRequestParams = { | |
Destination: { | |
ToAddresses: [ sesConfirmedAddress ] | |
}, | |
Message: { | |
Body: { | |
Text: { | |
Data: emailObj.message | |
} | |
}, | |
Subject: { | |
Data: emailObj.subject | |
} | |
}, | |
Source: sesConfirmedAddress, | |
ReplyToAddresses: [ emailObj.email ] | |
}; | |
return emailRequestParams; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment