Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

  • The MailFragment element is used to specify the content, format and recipients of e-mail notifications.
  • In addition mail server connection settings are used from JS7 - Job Resources

MailFragment

Attributes

The MailFragment element supports the following attributes:

AttributeUsageDescription
nameRequiredUnique name of the fragment.
job_resourcesRequiredA list of JS7 - Job Resources that specify mail server connection settings.
content_typeOptional

Content type of the e-mail.

Possible values:

  • text/plain
  • text/html.


Default: text/html

charsetOptional

Charset of the e-mail.


Default: ISO-8859-1

encodingOptional

Encoding of the e-mail.

Possible values:

  • 7bit
  • Quoted-Printable
  • Base64.


Default: 7bit

priorityOptional

Priority of the e-mail.

Possible values:

  • Highest
  • High
  • Normal


Default: Normal

Attributes from Job Resources 

The following settings must be provided by one of the Job Resources that are assigned a MailFragment:

...

AttributeUsageDescription
fromOptional

E-mail address of the account that sends e-mail.

from_nameOptionalName for the E-mail address of the account that sends e-mail.
toOptionalE-mail address of the recipient(s) of a notification e-mail.
ccOptionalE-mail address of the recipient(s) of a carbon copy notification e-mail.
bccOptionalE-mail address of recipient(s) of a blind carbon copy notification e-mail.

Elements

The following elements are nested inside the MailFragment element:

ElementElement descriptionDescription
MessageRefRequired, only once inside of the MailFragment elementBody of an e-mail notification that is provided by the referenced Message element.
SubjectRequired, only once inside of the MailFragment elementSubject of an e-mail notification.
FromOptional or only once inside of the MailFragment elementE-mail address of the account that sends e-mail.
ToOptional or only once inside of the MailFragment elementE-mail address of the recipient(s) of a notification e-mail.
CCOptional or only once inside of the MailFragment elementE-mail address of the recipient(s) of a carbon copy notification e-mail.
BCCOptional or only once inside of the MailFragment elementE-mail address of recipient(s) of a blind carbon copy notification e-mail.

Subject

Subject of an e-mail notification.

...

Code Block
languagexml
titleExample
collapsetrue
...
<Subject><![CDATA[JS7 JobScheduler Notification: ${TYPE} - Order ID: ${MON_O_ORDER_ID} - Workflow: ${MON_O_WORKFLOW_PATH}]]></Subject>
...

 MessageRef

The Message element referenced specifies the body of an e-mail notification.

...