Document numberRevision
DOCU123428

 

Extended Mail Configuration (incoming)

Background

In this article, you will be introduced to the extended configuration of the Mail Module in Highstage. This configuration enables Highstage users to store, manage and track incoming communication by mail, directly in Highstage.

The extended mail configuration enables Highstage users to:

 

Prerequisites

Standard Mail Configuration

You must complete the setup of the Automatic mail notifications and reminders in Highstage, before any extended mail capabilities can be enabled in your Highstage installation.

 

Schema accessibility

In order to install the Highstage Mail module the user need administrative access to Highstage, as well as access to the schema files which define the functionality of Highstage.

 

Protocols

To retrieve e-mail messages from a mail server, a protocol is needed. The Highstage mail module makes use of the IMAP protocol. This means that the mail server need to support IMAP. Nonetheless this is one of the most popular mail protocols on the market, with support on all major platforms.

 

Setup of incoming mails in Highstage

Here, you will be introduced to the standard configuration related to the setup of incoming mails in Highstage.

 

Web config setup

The following section describes the required setup in web.config.xml using either basic authentication or OAuth authentication.

 

Web config configuration (Basic authentication)

  1. Access the web.config.xml file from your Turbostage/TS_WebApp folder directory.

  2. Add the following snippet within the <connectionStrings> element:

  1. Replace MAILID with any unique name value (This mail ID must also be used in the custom.schema.xml).

  2. Replace SERVERNAME with an appropriate mail server name (IMAP or POP3 server name).

Tip: You can also specify a shared mailbox by replacing SERVERNAME with SERVERNAME/MAILBOX (e.g. inbox@company/sales).

  1. Replace USERID with mail user name.

  2. Replace PASSWORD with mail password.

  3. Replace MAILFOLDER with an appropriate folder for new mails (e.g. Inbox).

 

Web config configuration (OAuth authentication)

Requirement: Please follow the listed instructions here to be able to utilize OAuth authentication before progressing with the instructions.

 

  1. Access the web.config.xml file from your Turbostage/TS_WebApp folder directory.

  2. Add the following snippet within the <connectionStrings> element:

  1. Replace MAILID with any unique name value (This mail ID must also be used in the custom.schema.xml).

  2. Replace SERVERNAME with an appropriate mail server name (IMAP or POP3 server name).

Tip: You can also specify a shared mailbox by replacing SERVERNAME with SERVERNAME/MAILBOX (e.g. inbox@company/sales).

  1. Replace USERID with mail user name.

  2. Replace clientid with appropriate client ID.

  3. Replace tenantid with appropriate tenant ID.

  4. Replace clientsecret with appropriate client secret.

  5. Replace MAILFOLDER with an appropriate folder for new mails (e.g. Inbox).

 

Custom schema configuration

  1. Access the custom.schema.xml from your Turbostage/TS_WebApp/tweak folder directory.

  2. Add the following snippet to enable the mail module:

  1. Add the following configuration snippet:

  1. Replace DEFMAILTYPE with the name value of any existing <mailtype> to configure which default <mailtype> element is used by default.

  2. Replace MAILTYPE with any unique name value (Should be the same value as DEFMAILTYPE in step 3 if this mailtype should be the default mailtype).

  3. Replace MAILDRRESS with an appropriate mail address to receive mails.

  4. Replace MAILID with the same value as specified in the web.config.xml (Should be the same ID as used in the web.config file).

  5. Replace SSLVALUE with an appropriate value (Disabled, Explicit or Implicit).

  6. Replace DEFWORKSPACE with an existing Workspace in Highstage where mails should be associated.

  7. Replace DEFTYPE with an existing Type in Highstage where mails should be associated.

  8. Replace MAILADRESSES with any number of mail addresses who should receive mail notifications when a mail is received by Highstage (e.g mail@highstage.dk;othermail@highstage.dk). Please refer to Notifications to learn about who receives notifications when new mails are received by Highstage.

 

You have successfully configured incoming mails from Highstage.

To get access to the default mail menu, including mail tests, please include a section to the type ts_mail in the menu-schema

 

Add headers and footers to outgoing mails

You can add custom text or styling to the headers and footers of the outgoing mails from Highstage.

 

  1. In your custom.schema.xml, add the following snippet inside of the existing <type name="ts_mail"> element:

  1. Change the CONTENT HERE within the <html> elements with appropriate HTML/CSS to define content and styling for the header and footer of outgoing mails.

  2. Change the CONTENT HERE within the <txt> elements with appropriate HTML to define basic content for the header and footer of outgoing mails.

Success! You have successfully added a standard header and footer of all outgoing mails from Highstage.

 

Notifications

Users will be notified via email when new mails are sent and received by Highstage.

 

New pending mails

For incoming mails that are received by Highstage (without a valid subject tag for it to be automatically attached to an existing item in Highstage), the mails will be readily available in the Pending mail section in the side navigation menu.

The list of users to be notified can be configured for each individual mail address (MAILTYPE). Please refer to Custom schema configuration to learn how to configure which resources to be notified.

Automatically attached mails

For incoming mails that are received by Highstage (where a valid subject tag is included as part of the mail subject line), the mail will be attached directly to the relevant item.

 

Subject Line Tags

Any incoming mail sent to Highstage with an accepted token (specific contents in the mail subject line) will be automatically attached to the appropriate item.

Default Subject Token

By default, the following subject notation is accepted in the mail subject (Type refers to the relevant base- or subtype whereas ID refers to the unique item ID):

Note: Please note that this subject token is only accepted if the MailIdentifierEnforcement parameter is disabled.

If the subject line token matches any existing item in Highstage, it will automatically become attached to that item and relevant resources will be notified.

 

Custom Subject Token (Made available in Highstage version 12.0)

The following subject token notation is accepted in the mail subject and can be customized using mail parameters:

Note Please refer to SYSTEM > Parameters > Mail Parameters to configure which mail tokens are accepted by your Highstage installation.

The following mail parameters can be configured to define accepted mail tokens:

 

If the subject line token matches any existing item in Highstage, it will automatically become attached to that item and relevant resources will be notified.

 

Samples

Shared mailbox with Office/Microsoft 365

Web config configuration (basic authentication)

Web config configuration (OAuth authentication)

 

Custom schema configuration

 

Enable or disable Copy to folder button on attachments

For documents where there are referenced mails with file attachments, it is possible to enable and/or disable a Copy to folder button that automatically downloads the attachments to the associated item folder:

image-20220114154326631

Configuration

Enabled (default):

Disabled:

 

 


highstage_footer