docs

Home All functions Legacy functions Categories

vuSendMailFromFile()

vuSendMailFromFile(*CSTRING InCsvFileName,*CSTRING InFromEmail),SIGNED,PROC,PASCAL,RAW,NAME('vuSendMailFromFile')

Purpose

Reads a CSV file of messages, validates rows, and queues valid rows for SMTP delivery.

Parameters

| Parameter | Type | Description | |—|—|—| | InCsvFileName | *CSTRING | CSV file path to read. | | InFromEmail | *CSTRING | Default attachment path applied when a row has an empty attachment field. |

Return value / error codes

Example (Clarion)

MAP
  MODULE('vuMail.dll')
    vuSendMailFromFile(*CSTRING InCsvFileName,*CSTRING InFromEmail),SIGNED,PROC,PASCAL,RAW,NAME('vuSendMailFromFile')
  END
END

rc          LONG
csvFile     CSTRING(260)
defaultAtt  CSTRING(260)

csvFile = 'C:\Mail\outbox.csv'
defaultAtt = ''

rc = vuSendMailFromFile(csvFile, defaultAtt)
MESSAGE('vuSendMailFromFile rc=' & rc)

Notes

Home All functions Legacy functions Categories

From column behavior

The CSV From column follows the same sender-selection rules as vuSendMail() and vuSendMailWait():

If a row supplies a display name only and there is no saved/default profile sender address available, that row is treated as invalid and is skipped.