From 33b38271096963c2b2bcdf0f59fc88f7e4f8df19 Mon Sep 17 00:00:00 2001 From: andrewstech Date: Thu, 29 Jun 2023 17:55:30 +0000 Subject: [PATCH] html --- components/adminSendEmails.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/adminSendEmails.js b/components/adminSendEmails.js index e323983..5dbd95c 100644 --- a/components/adminSendEmails.js +++ b/components/adminSendEmails.js @@ -6,11 +6,13 @@ function adminSendEmails(interaction) { const email = interaction.fields.getTextInputValue("email"); const subject = interaction.fields.getTextInputValue("subject"); const message = interaction.fields.getTextInputValue("message"); + const htmlmessage = `

${message}

<% Unsubscribe Here %>` const msg = { to: email, // Change to your recipient from: adminemail, // Change to your verified sender subject: subject, text: message, + html: htmlmessage, } sgMail .send(msg)