Skip to content

Commit

Permalink
html
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Jun 29, 2023
1 parent 123ccc0 commit 33b3827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/adminSendEmails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<p>${message}</p><% 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)
Expand Down

0 comments on commit 33b3827

Please sign in to comment.