Sending Documents by E-mail

A generated document can be sent by e-mail automatically via E-mail Alert workflow action. This action allows you to create an e-mail message that will be sent to specified addresses, when a certain event occurs in the frames of the workflow. The E-mail Alert action includes the Attach Document dropdown, where you can select a document that should be automatically sent by email.

To render the document output as a PDF file or a DOCX file, set the Output Format in the document settings.

The action can be triggered by a Workflow Trigger or by a Custom Button. So at first you should create a new trigger or a new custom button or use an existing one.

After that you can add the E-mail Alert action to this trigger or button:

Click the Setup link in the top right corner of the window.

Choose a table and click a corresponding tab at the top of the window.

From the menu in the main frame select Rules > Workflow Triggers (or Custom Buttons )

To add an E-mail Alert workflow action, edit the existing trigger or custom button,

Click the New button in the Actions section and select the New Email Alert action type:

Fill out the New Email Alert form. The General section includes the following settings:

Name

Enter a name of a new alert.

Description

Write a description if needed.

From

Specify from whom an e-mail alert should be sent. You can use the following options:

Option

Description

notify@teamdesk.net

The e-mail alert will be sent to all users who have the access to the database.

Database Owner

A database owner name and e-mail will be indicated in the From field of the e-mail alert.

Me

Your user name and e-mail will be indicated in the From field of the e-mail alert.

The User

You can specify a user whose e-mail and name will be indicated in the From field.

The address listed in the column

If there are columns of the E-mail type in a table, you can specify a column name. As a result the column value will be displayed in the From field of the e-mail alert.

Specific e-mail address

You can type-in a specific e-mail address and this e-mail address will be displayed in the From field.

To/Cc/Bcc

Select options defining to whom an e-mail alert should be sent. You can specify one or many options described below.

Option

Description

All users with access

The e-mail alert will be sent to all users who have the access to the database.

Me

The e-mail alert will be sent to your user e-mail. You entered this e-mail, when registered as a database user.

The User

You can specify a user whom the e-mail alert will be sent.

All members of the role

You can choose a role and the e-mail alert will be sent to the users whom this role is assigned.

The address listed in the column

If there are columns of the E-mail type in a table, you can specify a column name. As a result the e-mail alert will be sent to the e-mail value displayed in this column.

Specific e-mail address

You can type-in a specific e-mail address and the e-mail alert will be sent to it.

If it is necessary, in the Cc and Bcc fields, you can define to whom a copy of the e-mail alert should be sent.


In the E-mail Contents section of the form enter the data concerning e-mail content:

Subject

In the Subject field enter the subject of the alert.

Body

In the Body field enter the basic information of the alert. Note that the body of an e-mail can contain variables. Use the Insert Variable and Insert Column Value lists to configure the body of the message.

You can choose the following variants of the variables to insert:

%AppName%

A name of this database

%AppOwner%

An owner of this database

%AppLink%

A link to a database

%RecData%

A copy of a record

%RecLink%

A link to a record

%RecId%

A record built in Id

%RecKey%

A record key column

%Action%

A record action

%Modifier%

A record modifier

%Recipient%

An e-mail alert recipient

The Insert Column Value field lists columns comprised in the Table.

In case the column value has been changed and you want to display this previous old column value in the email body, you can select the column from the list of the Insert Old Column Value field.

Access rights for the placeholders in the message body are determined by access rights of the user specified in the To field. In case of arbitrary e-mail columns or an arbitrary e-mail address, the access rights of the database owner will be used.

Recipients specified in the Cc and Bcc fields will receive a copy of the message sent to the recipient specified in the To field regardless of their access rights.

Format

In the Format subsection select a necessary format of a reminder: HTML or Plain Text.

Attach Document

In the Attach Document dropdown select a generated document that should be automatically sent by email.

Next: Image processing in documents