Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterTypeRequiredDescription
attachmentNamestringYesThe name of the attachment from the incoming email. (warning) Note that if there are multiple attachments withthe same name, this will always attach the first one in the list.
filePath

string

YesThe file path where the attachment file is saved.


Return type

boolean

true '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");
}

...