DriveWorks Autopilot has the ability to send emails, and optionally include attachments. Rules for the email parameters (To, Cc, Bcc, Subject, Body, Attachments) are applied in DriveWorks Administrator.
The Email document is triggered in the specification flow by the Release Emails task.
In DriveWorks Administrator open the project and go to Stage 4: Output Rules> Documents
The email editor will open displaying the parameters that should be applied for the Email Details, Email recipients and Email Body.
The Sender Rule must result in a valid email address, for example, click Build... and enter the following:
The Subject Rule controls the subject line of the email, for example:
"Quote for Specification " & DWSpecification
The Attachments Rule is used to attach documents to the email, for example:
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 are relevant when two or more DriveWorks Autopilot machines are deployed.
Tags allow control over which DriveWorks Autopilot processes the required information for a specification.
The result of the Tags rule must match a tag set in DriveWorks Autopilot.
|If(HighPriorityCheckBox=True,"High","Low")||When the checkbox HighPriority is checked will result in the tag High being applied to the parameter. Otherwise the tag low will be applied.|
Rules can be built for the recipients, carbon-copy recipients, and blind carbon-copy recipients of the email, for example:
The following general settings can be applied to each email sent.
If this is unchecked the email will be sent as plain text.
Please see w3schools - HTML for information on HTML formatting.
The text to include in the email is entered directly in the Email Body editor.
For Plain Text emails, text is entered exactly as it will appear when read in an email client.
For HTML emails the text should include HTML formatting tags (see image below). Please see w3schools - HTML for more information.
Where a rule (the result of a variable or form control for instance) is required to be included in the body:
The rule will appear within double angle brackets << >>
To Preview the email:
It will not format any HTML applied to the body.
Plain Text emails can only send images as attachments.
Hyperlinks will display all formatting tags to the recipient, the link will not be clickable.
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:
Where MyImage.jpg is the file name and extension of the image included as an attachment.
The correct HTML to use when embedding and image located on a web server is:
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.
The Send Test Email button will queue an email to be sent.
The email will be sent when DriveWorks Autopilot is set to send emails and has been started.
Please see DriveWorks Autopilot - Email Settings for more information.