Skip to end of metadata
Go to start of metadata

 

If you have trouble understanding how the action works, check the descriptions: Application, Setter, Conditional execution, Component parameters
Basic information

Category: Email

Available from version: 1.0.5

Description

The task sends e-mails according to a predefined template (specified via the path to a file on the server or the name of the template in the process configuration). It has predefined tags, e.g. searching for e-mails on the basis of a role identifier or automatically inserting values into the template between the "@" and "@" tags. The application has the possibility to attach a document from the process as an attachment in an email. The configuration of the mail server can be found in the system configuration section (Mailbox configuration). As of version 1.0.11, it is possible to save the content of a sent e-mail as a document in the PlusWorkflow system.

Configuration parameters
Parameter nameFrom versionDescriptionParameter typeDefault valueField typeNotes and restrictions
Mailbox *1.0.49Mailbox defined in the system configurationText Value list 
Template source *1.0.7Storage location of the email template to be sentText Value list 
Template path *1.0.7Provide a direct path to the file on the serverText Editable fieldHtml template, which can contain special tags to be replaced with the corresponding values. See table Tab_2.
Template name *1.0.7Name of the template from the process configurationText Editable fieldHtml template, which can contain special tags to be replaced with the corresponding values. See table Tab_2.
Subject *1.0.5Email subjectText Editable fieldMay include template tags - possible use of "@" tags e.g. "@processname@"  See table Tab_2.
To1.0.5List of e-mail addresses to send the message toText array Editable fieldSupports multiple emails given after "," or ";". Possibility to use email tags. See table Tab_1.
Copy1.0.5Optional parameter. List of addresses to send a copy of the emailText array Editable field

Supports multiple emails given after "," or ";". Possibility to use email tags. See table Tab_1.

Hidden copy
1.0.5Optional parameter. List of addresses to send a blind copy of the emailText array Editable fieldSupports multiple emails given after "," or ";". Possibility to use email tags. See table Tab_1.
The name of the variable
1.0.5Optional parameter. The name of a variable in the template between the @ and @ characters.Text array Value listParameter useful when you want to use one template on several processes and map tags that are not present in the current process.
The value of the variable1.0.5Optional parameter. The value to be inserted in place of the variable name in the templateText array Editable field 
One message to everyone *1.0.5Sends one email to several addressees. If NO, each addressee is treated separately and gets a separate email.LogicalYES  
 Feedback - Successful sending1.0.5Optional parameter. Returns a list of email addresses that have been successfully sentVariable Editable field 
 Feedback - Failed sending1.0.5

Optional parameter. Returns a list of "To" email addresses that have not been successfully sent

Variable Editable field 
Comment *1.0.5Adds commentary on sent and unsent emails for recipients on the "To" listLogicalYES  
Attachments *
1.0.7Adds process documents to emails as attachmentsLogicalNO  
Source *1.0.33

Selection of the method by which documents to be sent in attachments are to be found. Possible values:

  • Document class
  • File ids
Text Editable field 
File ids *1.0.33Parameter needed to select the files you want to send in attachmentsText array Value list 
Document class
1.0.7Optional parameter. When the value is empty, it adds all documents from the process to the mail (if this option is enabled), otherwise it adds only documents from the selected document classesText array Value listThe order of document classes matters when adding attachments. That is, documents from class1 are added first then from class2 etc.
Filter by document name1.0.28A regular expression that filters documents from a selected class for sending in an e-mail attachmentText array Editable field

A blank field will result in the retrieval of all documents from the selected class.

Examples: file name: IMG5822996601453555121.pdf

regular expressions that will find this file:

  •     ^IMG5.*$
  •     .*pdf$
Link to a site where you can test regex online: https://regex101.com/
Prefix 1.0.11Prefixes added to the name of the uploaded file from the selected document classes.Text array Editable fieldE.g. When the document has the name "fact0001.pdf", and the prefix parameter has been set to the value "invoice-", the attachment named "invoice-fact0001.pdf" will come in the email. If the parameter is not set, the document will be added without the prefix,
Save email *1.0.11Saves the sent message as a new html documentLogicalNO This option allows you to save the generated email content as an html document added to the archive.
Document name *1.0.11Name of the new documentText Editable fieldFile name. You can specify it without extension, in which case it will add ".html" by default.
Document description
1.0.11Document description. If it is empty, then the class name will be written in the descriptionText Editable fieldThe name of the html document created with the email content.
Document class *1.0.11 The name of the class to which to write the emailText Value listList of document class selections from the current system.
Attach to the process *1.0.11Attaches a new document to an existing processLogicalYES  
Email header *1.0.11Adds an email header to the body of the messageLogicalNO Adds an optional default header to the document with information From Whom, To Whom, the subject of the message and a list of attachments. See email header template
Email header template
1.0.11Path to custom HTML template containing email header tagsText Editable fieldPath to custom html template with email information. Possibility to use special tags See table Tab_3. For blank value the default template provided with the plugin is used See Default email header template
Save as new version of the document *1.0.11Saves as new version of document when index values match with document already in archiveLogicalNO  
1.0.11The name of the index from the class to which we are saving the email contentText array Value listSelection list after selecting the class of document to be saved.
Index value1.0.11The value that will be stored in the index when saving the email content documentsText array Editable field 
Configuration example

Change log

 1.0.5

  • Added component

1.0.7

  • Adding the ability to attach files to emails

1.0.11

  • Adding a prefix to attachments
  • Support for saving email content
  • Improving the order of attaching attachments to emails

1.0.14

  • Fix a bug when building email addresses when the parameter value is empty.

1.0.16 (applicable documentation)

  • Sending an encrypted attachment (decryption during sending)
  • Improve logs on failure and success of sending messages

1.0.49

  • Added a new "Mailbox" parameter

1.0.62

  • Added ability to use @@rows@@ and @@end_rows@@ tags

  • No labels
Write a comment…