| 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. |
1: At least one valid row was queued.0: File missing/invalid, no valid rows, or processing failure.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)
0.| Home | All functions | Legacy functions | Categories |
The CSV From column follows the same sender-selection rules as vuSendMail() and vuSendMailWait():
Support <support@example.com> is used as supplied for that row.Technical Support, combines that name with the saved/default profile sender address.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.