Mail send

Mail send is a processor (although conceptually it is a consumer) that sends an e-mail message to an SMTP e-mail relay server for each incoming job.

Some properties for this tool (such as the SMTP server details) must be set up in the global user preferences, since these values are the same for all outgoing email. For more information, refer to Switch preferences: Mail send.

Keywords

If you enter one of the following keywords in the Search field at the top of the Flow elements pane, the Mail send element will be shown in the list:

Connections

Mail send supports optional outgoing connections to provide in-flow feedback about the operation and to keep the job around without extra copying. This allows multiple send operations to be chained in an intelligent manner; for example:

Mail send supports traffic-light connections of the following types (other types are not allowed):

Properties

Property

Description

Name

The name of the flow element displayed in the canvas.

Description

A description of the flow element displayed in the canvas. This description is also shown in the tooltip that appears when moving your cursor over the flow element.

Subject

The subject line for the message.

To addresses

The list of destination email addresses for the message. Email addresses are separated by a semicolon or by a newline.

Include attached addresses

If set to Yes, the email addresses from the job's internal job ticket are added to the To addresses. For more information about attached email info, refer to Using email info in Switch.

CC addresses

A comma/semicolon/newline separated list of carbon-copy email addresses for the message.

BCC addresses

A comma/semicolon/newline separated list of blind carbon-copy email addresses for the message.

Reply address

The email address to which a receiver of the message should send a reply. If the value is empty or Default, the sender address specified in the Switch preferences is used. See Switch preferences: Mail send.

Note: The value of this property is used in the Reply-To SMTP header that is normally used by email client applications to send a reply. However, the From field of an email in the client application does not display this address, instead it shows the sender address specified in the Switch preferences. See Switch preferences: Mail send.

Message format

The format of the message body, either Plain text or HTML. When set to HTML, the email message has two bodies. The first is in HTML format and the second is a plain text version of the HTML message.

Body template

The location of the template of the email body.
  • If set to Built-in, the text can be set in the Body text property. Using the Include attached body text option, you can insert the body text attached to the job as part of its email info, after the body text.
  • If set to Fixed file, a Template file can be set, referring to a plain text or HTML file containing the template for the message body.
    • A plain text body template must be a regular text file (preferred extension ".txt") using Unicode (UTF-16 with proper BOM or UTF-8). Other text encodings are not allowed.
    • An HTML body template must be a valid HTML file (preferred extension ".html") using Unicode UTF-8. The HTML file must contain a tag specifying that it uses UTF-8 encoding. Other text encodings (including UTF-16) are not allowed.

      An HTML body template should not refer to any local resources (since these will not be transmitted with the mail message). Any references (including images) should point to public resources on the worldwide web.

      You can use Enfocus Switch variables in a plain text template or an HTML template. An example with variables you could use in your own template:
      <span>Job size: [Job.ByteCount]</span>
      <span>Flow name: [Switch.FlowName]</span>
      <span>Current date: [Switch.Date]</span>
      For more information on variables, refer to Known variables

      A sample HTML template is available at: http://www.enfocus.com/manuals/Extra/Switch/mailtemplate.html.

  • If set to Associated with job, the Template dataset (name of the metadata dataset associated with the job containing a plain text or HTML template) can be set. For more information about attached email info, refer to Using email info in Switch.

Attach files

If set to Yes, the incoming file or job folder is compressed (zipped) and attached to the email message being sent.

Strip unique name

If set to Yes, the unique name prefix added to the filename by Switch is removed before emailing the job; the default is to strip the prefixes from jobs before emailing them

This property affects both the actual attachments and the names of the jobs listed in the email body.