docs

Home All functions Legacy functions Categories

vuPOP3SaveAttachment()

Clarion prototype

Prototype: vuPOP3SaveAttachment(*CSTRING InFileName), SIGNED, PROC, PASCAL, RAW, NAME(‘vuPOP3SaveAttachment’)

Purpose

Saves one attachment from the currently loaded POP3 message by filename.

Parameters

| Parameter | Type | Description | |—|—|—| | InFileName | *CSTRING | Attachment filename to save from the loaded message. |

Return value / error codes

| Value | Meaning | |—|—| | 1 | Attachment saved successfully. | | 0 | FileName is blank, attachment name not found, or save failed. |

Example (Clarion)

rc       LONG
fileName CSTRING(260)

fileName = 'invoice.pdf'
rc = vuPOP3SaveAttachment(fileName)
IF rc = 0
  MESSAGE('Attachment save failed.')
END

Notes

Home All functions Legacy functions Categories