Creates a customizable Email Document.
This template will add the following to the Project:
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.
In DriveWorks Administrator open the Project the Document is to be add to and go to Stage4: Output Rules then Documents - Files and scroll down to Template.
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.
The Sender Rule is controlled by a Variable and must result in a valid email address:
=DWVariableEmail
The Subject Rule is controlled by a Variable for the subject line of the email:
=DWVariableEmailSubject
The Attachments Rule is used to attach a logo to the email:
=FsGetFullPathProject("HTMLEmailTemplate HTML Email Document\DriveWorksConfigureAutomateSmall.png")
Multiple Attachments can be separated by using pipebar delimited list (|) 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".
No rule is set for this parameter. For more information on tags please see DriveWorks Autopilot.
The To Rule is controlled by a variable and must result in a valid email address:
=DWVariableCustomerEmail
No rules are set for Cc Rule or Bcc Rule.
Only the Send as HTML email is checked, this is a requirement so the email is sent as expected.
The Email Body is written in HTML and uses variables to pass data from the project into the email.
HTML Emails can send images as attachments, but they can also be embedded within the body.
Embedded images must be included as an attachment or be available on a web server, in which case the recipient will be given the option to download the image in their Email Client.
The correct HTML to use when embedding an image that is also an attachment is:
<img src="MyImage.jpg">
Where MyImage.jpg is the file name and extension of the image included as an attachment.
The correct HTML to use when embedding an image located on a web server is:
<img src="http://www.driveworks.co.uk/wp-content/uploads/2013/08/RuleBuilder.png">
Where the full address to the image, name and extension is included within the "".
The correct HTML to use for a Hyperlink is:
<a href="http://www.driveworks.co.uk">DriveWorks Website</a>
Where the full address is included within the "", and the text to display for the link is included before the closing </a> tag.