Download Attachment#

Saves the specified attachment to a file on the User's computer.

Letter[Link] The MailMessage object whose attachments need to be saved.
Attachment Index[Number] The index of the attachment. The numbering starts from zero. If there is no attachment with the specified index, the block will return the error "Index out of range".
File Name[Text] The name and path of the file to save the attachment. You can enter the full file name including the path.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that the blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.