...
Info | ||
---|---|---|
| ||
This routine is available starting with Power Scripts 4.0.9. |
Syntax
saveAttachmentFromEmail(attachmentName, filePath)
...
Parameter | Type | Required | Description | |||
---|---|---|---|---|---|---|
attachmentName | string | Yes | The name of the attachment from the incoming email.
| |||
filePath | string | Yes | The file File path where the attachment file is saved. |
Return type
boolean
'True' if the attachment file was successfully saved to the specified file path, 'false' otherwise.
Example
Code Block |
---|
IncomingEmail mail = getIncomingEmail();
for(string att in mail.attachments) {
saveAttachmentFromEmail(att, "/tmp/guess" + att + ".tmp");
}
|
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|