docs

Home All functions Legacy functions Categories

vuSetSimpleHTMLNormalizeBody()

Clarion prototype

Prototype: vuSetSimpleHTMLNormalizeBody(LONG InState), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSetSimpleHTMLNormalizeBody’)

Controls how the center body content is prepared when Simple HTML mode is active.

Parameters

Name Description
InState 0 inserts the body as an HTML fragment exactly as supplied. Any non-zero value treats the body as ordinary text, normalizes line endings, converts them into HTML-friendly breaks, and safely escapes HTML-sensitive characters.

Example (Clarion)

rc      LONG
cBody   CSTRING(4096)

rc = vuSetSimpleHTML(1)

! Use ordinary text in the email body and let vuMailKit make it HTML-safe.
rc = vuSetSimpleHTMLNormalizeBody(1)

! cBody can be text from a TEXT control, TPS memo, customer note,
! generated report, or any plain text string your program builds.
cBody = CLIP(CustomerMessageText)

! Use this instead when cBody already contains an HTML fragment.
! rc = vuSetSimpleHTMLNormalizeBody(0)

Notes

Home All functions Legacy functions Categories