Using Sanity to house email content #961
Unanswered
JamesSingleton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wasn't sure if here or the
resend-node
repo was the best place, so I will start here first. Is there a way to allow Sanity's Block Content to potentially be the source of the email content instead of hardcoding it.I was trying something like
And then in the actual email template I have
However, I get this in my terminal
And the email doesn't send. I know
@portabletext/react
has atoPlainText
. However, that gets rid of any structure to the block content.I even tried bringing in the
<PortableText />
into the email template itselfWith components looking the same
However, the result is still the same, I get the warning and no email is sent.
Beta Was this translation helpful? Give feedback.
All reactions