diff --git a/server/api/notes/email/[sermonId].post.ts b/server/api/notes/email/[sermonId].post.ts index dce6812..cea079c 100644 --- a/server/api/notes/email/[sermonId].post.ts +++ b/server/api/notes/email/[sermonId].post.ts @@ -43,7 +43,25 @@ export default defineEventHandler(async (event) => { // Get user's notes (already stored as HTML from rich text editor) const noteRecord = getSermonNote(user.id!, sermonId) - const userNotes = noteRecord?.notes || '

No notes taken

' + let userNotes = noteRecord?.notes || '

No notes taken

' + + // Convert Tiptap HTML to email-friendly HTML with inline styles + // Email clients don't support - - -
-

Sermon Notes

+ +
+

Sermon Notes

-

${sermonTitle}

+

${sermonTitle}

${sermonDate}

-

Bible References

+

Bible References

${bibleReferences}
-

Personal Appliance

+

Personal Appliance

${personalAppliance}
-

Pastor's Challenge

+

Pastor's Challenge

${pastorsChallenge}
-

My Notes

+

My Notes

${userNotes || 'No notes taken'}