EmailAttachment.SaveToFile

From Xojo Documentation

Method

EmailAttachment.SaveToFile(File as FolderItem) As Boolean

Supported for all project types and targets.

Saves the attachment to File. Returns a Boolean, True if successful.

Example

' attachment is an EmailAttachment
Var saveFile As FolderItem = SpecialFolder.Documents.Child(file.Name)

If attachment.SaveToFile(saveFile) Then
MessageBox("The attachment was saved!")
End If