docs

Home All functions Legacy functions Categories

vuMailToA(xTo, xCc, xBcc, xSubject, xBody, xAttachment)

Clarion prototype

Prototype: vuMailToA(*CSTRING InTo, *CSTRING InCC, *CSTRING InBCC, *CSTRING InSubject, *CSTRING InBody, *CSTRING InAttachment), LONG, PROC, PASCAL, RAW, NAME(‘vuMailToA’)

Purpose

Builds a mailto: URI (including an attach= parameter) and asks Windows Shell to open it with the default mail client.

Parameters

Return value / error codes

Example (Clarion)

toAddr  CSTRING(256)
ccAddr  CSTRING(256)
bccAddr CSTRING(256)
subj    CSTRING(256)
body    CSTRING(512)
attach  CSTRING(260)
rc      LONG

toAddr  = 'user@example.com'
ccAddr  = ''
bccAddr = ''
subj    = 'Test with attachment hint'
body    = 'Please see attached file.'
attach  = 'C:\Temp\report.pdf'
rc = vuMailToA(toAddr, ccAddr, bccAddr, subj, body, attach)
IF rc <= 32
  MESSAGE('vuMailToA failed/was rejected by shell. rc=' & rc & ' err=' & vuMailLastError())
END

Notes

Home All functions Legacy functions Categories