| Home | All functions | Legacy functions | Categories |
Prototype: vuSetSimpleHTML(LONG InState), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSetSimpleHTML’)
Turns Simple HTML mode on or off for later send calls.
When Simple HTML mode is on, vuMailKit builds a modest HTML wrapper, optionally inserts a header image and footer image, and places the current body content in the message area.
This is the quick path for a well-dressed HTML email. You do not need to create the outer HTML document yourself.
| Name | Description |
|---|---|
| InState | 0 turns Simple HTML off. Any non-zero value turns it on. |
rc LONG
cFrom CSTRING(256)
cTo CSTRING(256)
cCC CSTRING(256)
cBCC CSTRING(256)
cSubj CSTRING(256)
cBody CSTRING(2048)
cBodyText CSTRING(2048)
cAttach CSTRING(260)
rc = vuResetSimpleHTML()
rc = vuSetSimpleHTML(1)
rc = vuSetSimpleHTMLNormalizeBody(1)
cFrom = ''
cTo = 'customer@example.com'
cCC = ''
cBCC = ''
cSubj = 'Simple HTML message'
! This sample hard-codes the text so the example is self-contained.
! In a real program this is usually text from a TEXT control, TPS memo,
! customer note, template merge, or generated report text.
cBodyText = 'Thank you for your order.<13,10><13,10>' & |
'We appreciate your business.'
cBody = CLIP(cBodyText)
cAttach = ''
rc = vuSendMailWait(cFrom, cTo, cCC, cBCC, cSubj, cBody, cAttach)
vuResetSimpleHTML()
| Home | All functions | Legacy functions | Categories |