Versions Compared

Key

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

The Email Task allows us you to send an email within a BPMN Process.  Email Task It is configured with the following properties. 

 

Filed Field NameIs mandatory propertyMandatoryDescription
ToYesThe email address of the intended recipient of the email. Multiple recipients can be specified as comma-separated email addresses.
FromNoThe sender email address of the sender. If this field is not specified, the default email address specified in the activiti.xml is file will be used.
SubjectNoSubject of the email.
CCNoThe email addresses of the carbon copy receivers of the email. Multiple recipients are separated by commas.
BccNoThe bcc's email addresses of the blind carbon copy receivers of the e-mail. Multiple recipients are separated by commas.
CharsetNoCharset of the email can be changed.
HtmlNoThe content of email is in html HTML format.
TextNoContent is in non html -HTML format.

 

Sample Email Server Configuration

The Activiti engine sends e-mails using an external mail server. Following properties should be set in the The following steps guide you through a sample email server configuration for the Email task. 

  1. Set the following properties in the activiti.xml

...

  1.  configuration file

...

  1. found in the <BPS_HOME>/repository/conf directory. The following code block provides a sample of these settings using the Gmail configuration settings. 

    Code Block
    languagexml
    <property name="mailServerHost" value="smtp.gmail.com"/>

...

  1. 
    <property name="mailServerPort" value="

...

  1. 456"/>

...

  1. 
    <property name="mailServerDefaultFrom" value="mailtask@gmail.com"/>

...

  1. 
    <property name="

...

  1. mailServerUseSSL" value="true"/>

...

  1. 
    <property name="mailServerUsername" value="mailtask@gmail.com"/>

...

  1. 
    <property name="mailServerPassword" value="mailtask123"/>

...

  1. PropertyDescription
    • <property name="mailServerDefaultFrom" value=”email of the sender”>

...

    This specifies the default address of the sender

...

  1. . If a sender is not specified in the sender field as a mail task property, the email address specified here will be used instead.
    • <property name="mailServerUsername" value="mailtask@gmail.com"/>
    • <property name="mailServerPassword" value="mailtask123"/>
    Specifies the credentials of the sender for authentication purposes. Here, you should include the email

...

  1. addressandit'scorrespondingpasswordwhich you specified in the

...

  1. “From” field of the mail task.
1. You should specify only one from following properties. 

...

    • Port 456 (SSL required):<property name="

...

    • mailServerUseSSL" value="true"/>
    • Port 587 (TLS required):<property name="mailServerUseTLS" value="true"/>
2. Copy dependency jar files. 
  1. Specifiy only one of these two properties in order to specify whether the mail server should use SSL or TLS.
  2. Copy the following jar files into

...

  1. the <BPS_HOME>/repository/components/lib

...

  1.  directory and restart the server. 

...

...

 

 

 

 

 

...