AWS SES 说电子邮件地址未经验证,即使它是用于 ccAddress,而不是来自?
AWS SES says email address is not verified, even though it's for ccAddress, not from?
我在 Express 中不断收到以下错误:
MessageRejected: Email address is not verified. The following identities failed the check in region EU-WEST-1: email@gmail.com
这是我的代码:
// Set the region
AWS.config.update({region: 'eu-west-1'});
// Create sendEmail params
var params = {
Destination: { /* required */
CcAddresses: [
'email@gmail.com',
],
ToAddresses: [
'a@stack.overflow',
]
},
Message: { /* required */
Body: { /* required */
Html: {
Charset: "UTF-8",
Data: "HTML_FORMAT_BODY"
},
Text: {
Charset: "UTF-8",
Data: "TEXT_FORMAT_BODY"
}
},
Subject: {
Charset: 'UTF-8',
Data: 'Test email'
}
},
Source: 'address@email.com', /* required */
};
// Create the promise and SES service object
var sendPromise = new AWS.SES({apiVersion: '2010-12-01'}).sendEmail(params).promise();
// Handle promise's fulfilled/rejected states
sendPromise.then(
function(data) {
res.send(data.MessageId);
}).catch(
function(err) {
console.error(err, err.stack);
})
a@stack.overflow
和 address@email
已验证,但 email@gmail
未验证。如果我必须验证他们,我该如何发送给用户?我是否使用了错误的 AWS 服务?
当您使用 SES 沙箱时,您向其发送电子邮件的地址应由 SES 验证 - 这是为了您的钱包安全。在生产模式下不需要这样做。
参见:Moving Out of the Amazon SES Sandbox - Amazon Simple Email Service
我在 Express 中不断收到以下错误:
MessageRejected: Email address is not verified. The following identities failed the check in region EU-WEST-1: email@gmail.com
这是我的代码:
// Set the region
AWS.config.update({region: 'eu-west-1'});
// Create sendEmail params
var params = {
Destination: { /* required */
CcAddresses: [
'email@gmail.com',
],
ToAddresses: [
'a@stack.overflow',
]
},
Message: { /* required */
Body: { /* required */
Html: {
Charset: "UTF-8",
Data: "HTML_FORMAT_BODY"
},
Text: {
Charset: "UTF-8",
Data: "TEXT_FORMAT_BODY"
}
},
Subject: {
Charset: 'UTF-8',
Data: 'Test email'
}
},
Source: 'address@email.com', /* required */
};
// Create the promise and SES service object
var sendPromise = new AWS.SES({apiVersion: '2010-12-01'}).sendEmail(params).promise();
// Handle promise's fulfilled/rejected states
sendPromise.then(
function(data) {
res.send(data.MessageId);
}).catch(
function(err) {
console.error(err, err.stack);
})
a@stack.overflow
和 address@email
已验证,但 email@gmail
未验证。如果我必须验证他们,我该如何发送给用户?我是否使用了错误的 AWS 服务?
当您使用 SES 沙箱时,您向其发送电子邮件的地址应由 SES 验证 - 这是为了您的钱包安全。在生产模式下不需要这样做。
参见:Moving Out of the Amazon SES Sandbox - Amazon Simple Email Service