- Newest
- Most votes
- Most comments
Does SES not support BCC without a ToAddress?
The following page mentions you must specify a To address, so the answer is no, it doesn't.
https://docs.aws.amazon.com/ses/latest/dg/send-email-formatted.html
SendEmail
requires a From: address, To: address, message subject, and message body—text, HTML, or both.
module.exports.forgotPasswordEmail = async (event) => {
try {
const templateBody = Test
;
const emailParams = {
Destination: {
ToAddresses: [arjuntejaswi.s@gmail.com
],
BccAddresses: ["arjunrock160@gmail.com"], // Add your BCC email address(es) here
CcAddresses: ["test@gmail.com"],
},
Message: {
Subject: {
Charset: "UTF-8",
Data: "Password Resend Request",
},
},
Source: "no-reply@onarrival.travel",
};
emailParams.Message.Body = {
Html: {
Data: templateBody,
Charset: "UTF-8",
},
};
return await SES.sendEmail(emailParams).promise();
} catch (error) {
console.log("emailError", error);
return error;
}
};
This is my SES email code and for some reason I am not able to see bcc in the email after triggered. Not sure why. Could someone help me here.
Relevant content
- Accepted Answerasked 2 years ago
- asked 5 months ago
- asked 2 years ago
- asked 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago