DriveWorks Pro 15: HTML Email Document [send feedback...]

HTML Email Document

Creates a customizable email document.

This template will add the following to the project:

  • Variables - Stored in a category named Common.
DriveWorks Autopilot is required to send emails.
Emails are sent by Autopilot when it is started, and as soon as all of the attachments in the email are available. If there are no attachments, then Autopilot will send the email as soon as it sees it.
Document generation is triggered in the specification flow by the Release Documents task.

Add the HTML Email Document

In DriveWorks Administrator open the project the document is to be applied and go to Stage4: Output Rules> Documents

  1. Click the Add button on the command bar.
  2. Choose the HTML Email Document from the Document Templates list on the Add Document wizard.
  3. Give the new document a name and click Finish.

Edit the HTML Email Document

Once the document has been added it will open in edit mode where various options and the parameters that hold the data can be driven.

Email Details

The Sender Rule is controlled by a variable and must result in a valid email address:

Sender Rule Example
 =DWVariableEmail

The Subject Rule is controlled by a variable for the subject line of the email:

Subject Rule Example
=DWVariableEmailSubject

The Attachments Rule is used to attach a logo to the email:

Attachments Rule Example
 =FsGetFullPathProject("HTMLEmailTemplate HTML Email Document\DriveWorksConfigureAutomateSmall.png")
Multiple attachments can be separated by using pipe bars as shown in the example above.
It is possible to specify any file created by DriveWorks as an attachment for an email by building an attachment rule with the full path (or a path relative to the default specification folder) to the file that will be created. For example, this could be an eDrawing of a generated SOLIDWORKS file, a document, or any other file created by DriveWorks.

It is possible to control which documents are displayed as an email attachment. This can be done by the file returning the value "Delete".

Tags rule

No rule is set for this parameter. For more information on tags please see DriveWorks Autopilot.

Email Recipients

The To Rule is controlled by a variable and must result in a valid email address:

To Rule Example
 =DWVariableCustomerEmail

No rules are set for Cc Rule or Bcc Rule.

General Settings

Only the Send as HTML email is checked, this is a requirement so the email is sent as expected.

Email Body

The Email Body is written in HTML and uses variables to pass data from the project into the email.

Table of Contents