| Home | All functions | Legacy functions | Categories |
vuSendMailFromFile(*CSTRING InCsvFileName,*CSTRING InFromEmail),SIGNED,PROC,PASCAL,RAW,NAME('vuSendMailFromFile')
Reads a CSV file of messages, validates rows, and queues valid rows for SMTP delivery.
| Parameter | Type | Description |
|---|---|---|
| InCsvFileName | *CSTRING | CSV file path to read. |
| InFromEmail | *CSTRING | Default attachment path applied when a row has an empty attachment field. |
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)
| Home | All functions | Legacy functions | Categories |
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.