Jeśli masz problem ze zrozumieniem jak działa setter/zadanie automatyczne, sprawdź opisy: SetterZadanie automatyczneWykonanie warunkoweParametry komponentów

Kategoria: Email

Dostępna od wersji: 1.0.5

Zadanie wysyła maile według przygotowanego wcześniej szablonu ( podanego za pomocą ściezki do pliku na serwerze lub nazwy szablonu w konfiguracji procesu). Posiada predefiniowane tagi np: wyszukiwanie e-maili na podstawie identyfikatora roli lub automatyczne wstawianie wartości do szablonu w miejsce między znacznikami "@" i "@". Aplikacja ma możliwość dołączenia dokumentu z procesu jako załącznika w mailu. Konfiguracja serwera pocztowego znajduję się parametrach systemu. Od wesji 1.0.11 Jest możliwość zapisania treści wysłanego maila jako dokument w systemi PlusWorkflow

Nazwa parametruOd wersjiOpisTyp parametruWartość domyślnaRodzaj polaUwagi i ograniczenia
Skrzynka pocztowa *1.0.49Skrzynka pocztowa zdefiniowana w konfiguracji systemu.Tekst Lista rozwijana 
Źródło szablonu*1.0.7Miejsce przechowywania szablonu email do wysłaniaTekst Lista wartości 
Ścieżka do szablonu *1.0.7Należy podać bezpośrednią ścieżkę do pliku na serwerzeTekst Pole edytowalneSzablon html który może zawierać specjalne tagi, które podmienią się na odpowiednie wartości. Patrz tabela Tab_2.
Nazwa szablonu *1.0.7Nazwa szablonu z konfiguracji procesuTekst Pole edytowalneSzablon html który może zawierać specjalne tagi, które podmienią się na odpowiednie wartości. Patrz tabela Tab_2.
Temat *1.0.5Tytuł wiadomości email.Tekst Pole edytowalneMoże zawierać tagi szablonowe możliwe stosowanie znaczników "@" np "@processname@"  Patrz tabela Tab_2.
Do1.0.5Lista adresów email do wysłaniaTablica wartości tekstowych Pole edytowalneObsługuje kilka email podanych po "," lub ";". Możliwość z skorzystania z tagów email. Patrz tabela Tab_1.
Kopia1.0.5Parametr opcjonalny. Lista adresów do wysłania kopii mailaTablica wartości tekstowych Pole edytowalne


Obsługuje kilka email podanych po "," lub ";". Możliwość z skorzystania z tagów email. Patrz tabela Tab_1. 

Ukryta kopia1.0.5Parametr opcjonalny. Lista adresów do wysłania ukrytej kopii mailaTablica wartości tekstowych Pole edytowalneObsługuje kilka email podanych po "," lub ";". Możliwość z skorzystania z tagów email. Patrz tabela Tab_1. 
Nazwa zmiennej1.0.5

Parametr opcjonalny. Nazwa zmiennej w szablonie, która mieści sie między znakami @ i @

Tablica wartości tekstowych Lista wartościparametr przydatny gdy chcemy użyć jeden szablon na kilku procesach i mapować tag których nie ma w aktualnym procesie.
Wartość zmiennej1.0.5Parametr opcjonalny. Wartość która ma zostać wstawiona w miejsce nazwy zmiennej w  szablonieTablica wartości tekstowych Pole edytowalne 
Jedna wiadomość *1.0.5Wysyła jednego maila do kilku adresatów. W przypadku NIE każdy adresat jest traktowany osobno i dostaje osobnego maila. Domyślnie TAK.LogicznyTAK  
Informacja zwrotna - Udane wysłanie1.0.5Parametr opcjonalny. Zwraca listę adresów email "DO" które udały sie wysłać Zmienna Pole edytowalne 
Informacja zwrotna - Nieudane wysłanie1.0.5Parametr opcjonalny. Zwraca listę adresów email "DO" których nie udało się wysłaćZmienna Pole edytowalne 
Komentarz *1.0.5Dodaje komentarz o wysłanych i nie wysłanych mailach dla adresatów z listy "DO"LogicznyTAK  
Załączniki1.0.7Dodaje dokumenty procesu do maili jako załącznikiLogicznyNIE  
Źródło *1.0.33Wybór sposobu w jaki mają zostać odnalezione dokumenty, które będą wysłane w załącznikachString Pole edytowalne 
ID pliku *1.0.33Id pliku potrzebne do wybrania plików, które chcemy wysłać w załącznikachTablica wartości tekstowych Lista wartości 
Klasa dokumentu 1.0.7Parametr opcjonalny. Gdy wartość pusta, to dodaje wszystkie dokumenty z procesu do maila (jeżeli włączono taką opcje), w przeciwnym razie dodaje tylko dokumenty z wybranej klasy dokumentówTablica wartości tekstowych Lista wartościKolejność klas dokumentów ma znaczenie przy dodawaniu załączników. Czyli najpierw dodawane są dokumenty z klasy1 potem z klasy2 itp.
Filtr po nazwie dokumentu1.0.28Wyrażenie regularne, które filtruje dokumenty z wybranej klasy do wysyłania w załączniku e-mail.Tablica wartości tekstowych Pole edytowalne

Pole puste spowoduję pobranie wszystkich dokumentów z wybranej klasy

Przykłady: nazwa pliku: IMG5822996601453555121.pdf

wyrażenia regularne, które znajdą ten plik:

  • ^IMG5.*$
  • .*pdf$

Link do strony, w której można testować regexa online: https://regex101.com/

Prefix 1.0.11Prefiks dodawany do nazwy wysyłanego pliku z wybranej klasy dokumentów.Tablica wartości tekstowych Pole edytowalneNp. Dokument ma nazwę "fakt0001.pdf" a prefiks "faktura-" to w email przyjdzie załącznik o nazwie "faktura-fakt0001.pdf" . Można zostawić pustą nazwę, to dokument doda się bez prefiksu,
Zapisz email *1.0.11Zapisuje wysłaną wiadomość jako nowy dokument htmlLogicznyNIE Opcja możliwa zapisanie wygenerowanej treści email jako dokument html dodany do archiwum
Nazwa dokumentu *1.0.11Nazwa nowego dokumentu  Tekst Pole edytowalneNazwa pliku. Można podać bez rozszerzenia to domyślnie doda się ".html".
Opis Dokumentu 1.0.11Opis Dokumentu, gdy pusty to nazwa klasyTelst Pole edytowalneNazwa utworzonego dokumentu html z treścią email
Klasa dokumentu *1.0.11Nazwa klasy do której zapisać emaliaTekst Lista wartościLista wyboru klas dokumentów z aktualnego systemu.
Załącz do procesu *1.0.11Załącza nowy dokument do istniejącego procesuLogicznyTAK  
Nagłówek email *1.0.11Dodaje nagłówek email do treści wiadomościLogicznyNIE Dodaje opcjonalnie domyślny nagłówek do dokumentu z informacjami Od kogo, Do kogo, temat wiadomości oraz lista załączników. Patrz szablon nagłówka email
Szablon nagłowka email 1.0.11Ścieżka do niestandardowego szablonu HTML zawierającego tagi nagłówka wiadomości e-mailTekst Pole edytowalneŚcieżka do własnego szablonu html z informacjami o mailu. Możliwość użycia specjalnych tagów Patrz tabela Tab_3. Dla wartości pustej używany jest domyślny szablon dostarczony wraz z wtyczką Patrz Domyślny szablon nagłowka email
Zapisz jako nowa wersja dokumentu *1.0.11Zapisuje jako nowa wersja dokumentu gdy wartości indeksów sie zgadzają z dokumentem już w archiwumLogicznyNIE  
1.0.11Nazwa indeksu z klasy do której zapisujemy treść emailTablica wartości tekstowych Lista wartościLista wyboru po wybraniu klasy dokumentu do zapisu.
Wartość indeksu1.0.11Wartość która zostanie zapisane w indeksie podczas zapisywania dokumenty z treścią emailTablica wartości tekstowych Pole edytowalne 

 

Ustawienia zadania automatycznego

Ustawienia szablonu

szablon.html

 

<h1>@zm1@</h1>
<br><hr>
<br><h3>@zm2@</h3>
<br><p>@zm3@</p>
<br>@processname@
<br>Nazwa procesu
<br>@processdescription@
<br>Opis procesu
<br>@processtype@
<br>Typ procesu
<br>@processstarttime@
<br>Godzina uruchomienia procesu
<br>@processstartday@
<br>Data uruchomienia procesu
<br>@activityname@
<br>Nazwa zadania
<br>@activitystarttime@
<br>Godzina uruchomienia zadania
<br>@activitystartday@
<br>Data uruchomienia zadania
<br>@historylink@
<br>Link do historii procesu
<br>@link#zadanie_1@
<br>Link do szczegółów zadania o podanym id definicji zadania,
<br>np. link#akceptacja_wniosku
<br>@taskuser#zadanie_1@
<br>@taskuser#prepare_email@
<br>@taskuser#autotask_send_advence_email@
<br>@taskuser#zadanie_4@
<br>Pełna nazwa uzytkownika, który wykonał zadanie o podanym id definicji zadania,
<br>np. taskuser#akceptacja_wniosku
<br>@realusername#kontrahent@
<br>Pełna nazwa użytkownika, którego identyfikator znajduje się w podanej zmiennej procesowej,
<br>np. realusername#zmienna
<br>@processname@
<br>@processdescription@
<br>@processdefid@
<br>@processpackageid@
<br>@processstarttime@
<br>@processstartday@
<br>@processscreatedtime@
<br>@processcreatedteday@
<br>@activityname@
<br>@activitydescription@
<br>@activitydefid@
<br>@activityid@
<br>@activitystarttime@
<br>@activitystartday@
<br>@activitycreatedtime@
<br>@activitycreatedday@
<br>@userfullname@
<br>@userfirstname@
<br>@userlastname@
<br>@useremail@
<br>@username@
<br>@usernumber@

 

Dane z formularza

Otrzymany E-mail

 

Informacja zwrotna na Formularzu

 

 1.0.5

  • Dodanie komponentu 

1.0.7

  • Dodanie możliwość załączania plików do wiadomości email

1.0.11

  • Dodanie prefiksu do załączników
  • Obsługa zapisywania treści email
  • Poprawa kolejności dołączania załączników do wiadomość email

1.0.14

  • Błąd przy budowaniu adresów email gdy pusta wartość parametru.

1.0.16 (obowiązująca dokumentacja)

  • Wysyłanie zaszyfrowanego załącznika (deszyfracja podczas wysyłania)
  • Wysłanie E-mail poprawa logów o  Niepowodzenie i Powodzeniu wysłania

1.0.49

  • Dodano nowy parametr "Skrzynka pocztowa"

1.0.62

  • Dodanie obsługi tagów @@rows@@ oraz @@end_rows@@ w szablonie

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

Category: Email

Available from version: 1.0.5

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.

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 

 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