docs

Home All functions Legacy functions Categories

vuPOP3SaveAttachment()

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

Example (Clarion)

MAP
  MODULE('vuMail.dll')
    vuPOP3SaveAttachment(*CSTRING InFileName),SIGNED,PROC,PASCAL,RAW,NAME('vuPOP3SaveAttachment')
  END
END

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