Xbasic
EMAIL_SAVE_ATTACH Function
Syntax
Filename_List as C = email_save_attach(P pMessage [,C path [,L lSaveInline ]])
Arguments
- pMessageCharacter
A pointer variable that is populated by EMAIL_POP_RETR().
- pathCharacter
- lSaveInlineLogical
Returns
- Filename_ListCharacter
A CR-LF delimited list of attachment filenames.
Description
The EMAIL_SAVE_ATTACH() function saves the attachments stored in a message downloaded with EMAIL_POP_RETR() and returns a list of filenames saved to disk.
Example
DIM pSocket as P DIM pMessage as P ? email_pop_open(pSocket, "mail.mycompany.com", "john_doe", "sneaky") = .T. ? email_pop_retr(pMessage, pSocket, 2) = .T. ? email_save_attach(pMessage) = c:\program files\a5v5\attachments\report.doc c:\program files\a5v5\attachments\budget.xls
See Also