convert text to html for marketing emails (#55)

This commit is contained in:
KM Koushik
2024-08-14 08:00:57 +10:00
committed by GitHub
parent 394b4e58d4
commit 3e173fc5dc
4 changed files with 70 additions and 48 deletions
+12 -8
View File
@@ -141,14 +141,18 @@ export async function sendEmailThroughSes({
},
Body: {
// Body
Text: {
Data: text, // required
Charset: "UTF-8",
},
Html: {
Data: html, // required
Charset: "UTF-8",
},
Text: text
? {
Data: text, // required
Charset: "UTF-8",
}
: undefined,
Html: html
? {
Data: html, // required
Charset: "UTF-8",
}
: undefined,
},
...(unsubUrl
? {