Skip to content

docs(mailing): Body is the HTML part, and the new TextBody alternative - #239

Open
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:docs/mailing-html-bodies
Open

docs(mailing): Body is the HTML part, and the new TextBody alternative#239
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:docs/mailing-html-bodies

Conversation

@marcelo-maciel

@marcelo-maciel marcelo-maciel commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Docs for dotnet-starter-kit#1351 (Golden Rule #10).

Building blocks → Mailing. The page mentioned only in passing that the body is treated as HTML, and the SendGrid sentence is now wrong — that provider no longer receives Body as both the plain-text and the HTML content. Updated the MailRequest signature with the new optional textBody, spelled out that Body is the HTML part and TextBody the text/plain alternative, and added a caution covering the two ways bare text in Body bites: an action link that never becomes clickable (auto-linking is text/plain behaviour), and interpolated values parsed as markup. The consume example now passes textBody.

Changelog. Entry for the fix, including the note that no deployment action is required — TextBody is optional and appended last, so existing callers keep compiling.

Verified: npm run build clean (92 pages indexed).

Holds until #1351 lands, same as #232.

Note for whoever merges: this PR and #232 both insert a new section at the head of changelog/index.mdx, so the second one to land will conflict there. Happy to rebase whichever comes second — no need to hold either on the other's account.

MailRequest.Body always lands in the HTML part, which the page stated only in
passing and the SendGrid line got wrong (it no longer sends Body as both
parts). Records the new optional TextBody, and warns about the two ways bare
text in Body bites: an action link that is never auto-linked, and interpolated
values parsed as markup. Adds the changelog entry for the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant