docs

Home All functions Legacy functions Categories

vuLogSetFile()

Description

Sets the legacy sent-mail CSV log file path. (legacy name: vuSetMailLog()).

Previously exported as (legacy name, still supported):

Parameters

Return value

A LONG value indicating the result.

Notes

Use vuGlobalsSave() if you want to persist it to the registry (key: “SentLogFile”).

This file is a legacy sent-mail CSV log, not the diagnostics log. Each successful or failed send attempt appends one CSV row in this format:

Date,Time,From,To,Subject,SavedEmailPath,ResultText

Use vuDiagnosticsSetFile() for diagnostic troubleshooting output. Use vuClearMailLog() to clear this sent-mail CSV log.

Example (Clarion)

ROUTINE:Test_vuLogSetFile   ROUTINE
  DATA
cLog   CSTRING(520)
RC     LONG

  CODE
  cLog = CLIP(PATH()) & '\MailLog.csv'
  RC = vuLogSetFile(cLog)
  STOP('RC=' & RC)
Home All functions Legacy functions Categories