/
Sending Documents by E-mail from Contract

Sending Documents by E-mail from Contract

Button Send Documents allows you to generate an e-mail that contains a document that was generated from a template (which was also defined in the Printout Definition) as an attachment.

When the button is pressed, the system performs the following steps:

The user then selects the printout he wants to print (Select=A) and if he wants the generated e-mail to open in the system's mail client, he also sets Parameter Input=A on the document and confirms the Ok button. The system then checks whether the necessary settings are defined in the Printout Definition (see PD Business Settings for description):

  • Custom Report Layout Code

  • Email Body Layout Code

  • E-mail Subject

  • E-mail Attachment Name

  • Send To

If all settings are entered, the system will perform checks:

  • If the Check Colour=Y flag is enabled in the Printout Definition on a given document, the OC will check if the Colour Code (20025) field on the subject of the contract is empty:

    • If it is empty, it displays an error message and does not allow you to continue:

      image-20240612-104540.png
    • If it is not empty, it continues.

  • If the Check Interior Colour=Y flag is enabled in the Printout Definition on the given document, the OC will check if the Interior Colour field (247) is not empty on the subject of the contract:

    •  If it is empty, it will display an error message and will not allow you to continue:

      image-20240612-104605.png
    • If it is not empty, it continues.

  • The system will open a standard dialog window to specify additional parameters:

If the checks were not carried out or were in order, he opens the e-mail attachment with the document:

The user can then send the e-mail (Send email button), or edit the text, etc.