How to send an email with HTML syntax instead of HTML text

I want send an email with HTML syntax instead of HTML text like this
<!DOCTYPE html > <body data-id="__react-email-body"><a data-id="react-email-button" target="_blank" style="line-height:100%;text-decoration:none;display:inline-block;max-width:100%;padding:0px 0px"><span><!--[if mso]><i style="letter-spacing: 0px;mso-font-width:-100%;mso-text-raise:0" hidden>&nbsp;</i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:0">Click me</span><span><!--[if mso]><i style="letter-spacing: 0px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--></span></a></body>
<!DOCTYPE html > <body data-id="__react-email-body"><a data-id="react-email-button" target="_blank" style="line-height:100%;text-decoration:none;display:inline-block;max-width:100%;padding:0px 0px"><span><!--[if mso]><i style="letter-spacing: 0px;mso-font-width:-100%;mso-text-raise:0" hidden>&nbsp;</i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:0">Click me</span><span><!--[if mso]><i style="letter-spacing: 0px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--></span></a></body>
1 Reply
Nikita
NikitaOP15mo ago
My mistake was here
const data = await resend.emails.send({
from:from,
to:to,
subject:subject,
html:html,
})
const data = await resend.emails.send({
from:from,
to:to,
subject:subject,
html:html,
})
I used react instead of html
Want results from more Discord servers?
Add your server