SaveAs(Name, Path)

Saves the attachment as a file with the specified name.

Parameters
  • Name. Specifies the name of the file in which to save the attachment.
  • Path. Specifies the full path to the location of the file.
Return value

Boolean:

  • True. Indicates that the save operation succeeded.
  • False. Indicates that the save operation failed.
Examples
Copy
AttItem.SaveAs("MyAttachment.txt", "C:\Attachments");

Saves the attachment stored in the AttItem variable to the MyAttachment.txt file located in the Attachments folder.