I am using AWS Pintpoint service to send an email to user, I am sending email through the lambda file and email was sent successfully to user inbox. but the issue is to address is showing blank. below is the code which I am using in lambda.
const pinpointEmail = new AWS.PinpointEmail();
return pinpointEmail
.sendEmail({
FromEmailAddress: fromEmailAddress,
Destination: {
ToAddresses: ['nayakr.bikash@gmail.com'],
},
Content: {
Raw: { Data: mimeEmail.toString() },
},
})
.promise()
.then((data) => {
return data;
});
Any Help would be appreciate , why "to" address shown blank