Saltar para o conteúdo principal

EXT_Email_SendDocument

Function to ask MSS to send a document by email.

Input parameters:

  • inCustomerCode – Code of the customer, if needed to the specified report;
  • inDocumentExercise – Exercise of the document;
  • inDocumentType – Type of the document;
  • inDocumentSeries – Series of the document;
  • inDocumentNumber – Number of the document;
  • inSendToEmail – Only used to override the email from the customer (CLIEML);
  • inDescription – Text to fill the subject of the email (can be empty, MSS will use a default text);
  • inMessage – Text to fill the email message;
  • inAttachmentsList - Files list to attach (files full name separated with character CR).

Output parameters:

  • outResultCode – Return code: 0 – Done / < 0 Error or user cancelled;