EmailAttachment.SaveToFile
From Xojo Documentation
Method
EmailAttachment.SaveToFile(File as FolderItem) As Boolean
Supported for all project types and targets.
Supported for all project types and targets.
Saves the attachment to File. Returns a Boolean, True if successful.