Yes, here are the results:
The console.log is indeed fine when looking at the Realm UI:
But very curious is this test, sending that paragraph inline to SES:
The email gets received correctly!
And again, getting going back to the case, if I get the HTML from here:
const emailHtml = await context.http.get({
url: 'https://www.typographicposters.com/newsletters/atlas-test'
// created this new URL with only that thank you note
})
const body = emailHtml.body.text()
const command = new SendEmailCommand({
FromEmailAddress: from,
Destination: { ToAddresses: [to] },
Content: {
Simple: {
Subject: {
Data: 'Test from Realm',
Charset: 'UTF-8',
},
Body: {
Html: {
Data: body, // <---------------
Charset: 'UTF-8',
},
},
},
},
})
await client.send(command)
The email gets received with all the garbled characters again:
And yes, that log at the Realm UI looks fine:
OK, now, what could be problem?
The source HTML is fine, and as I said, have being sending these emails for years. Just got the errors suddenly since last week.
(I will reference this source HTML from now on, it’s shorter: Atlas Test - typo/graphic posters)