【发布时间】:2019-07-09 18:19:25
【问题描述】:
我正在使用 .. 从 AWS lambda 发送邮件
const params = {
Destination: {
ToAddresses: ["xxx@xxx.com"]
},
Header : {
"Reply-To" : "hello@gmail.com"
},
Message: {
Body: {
Html: {
Charset: "UTF-8",
Data: htmlBody
},
Text: {
Charset: "UTF-8",
Data: textBody
}
},
Subject: {
Charset: "UTF-8",
Data: "My title"
}
},
Source: "xxx.com"
};
// Create the promise and SES service object
const sendPromise = new AWS.SES({ apiVersion: "2010-12-01",region: 'us-east-1' })
.sendEmail(params)
.promise();
但是,它给了UnexpectedParameter: Unexpected key 'Headers' found in params
如何使用 SES 和 Lambda 正确发送标头,
我主要需要使用reply-to。
【问题讨论】:
标签: amazon-web-services aws-lambda amazon-ses