Versions Compared

Key

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

...

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

 

Sample Email Server Configuration

The Activiti engine sends e-mails through an external mail server with SMTP capabilities. Following properties should be set in the activiti.xml configuration file in your server. For example settings , we are using gmail server configuration settings.


<property name="mailServerHost" value="smtp.gmail.com"/>
<property name="mailServerPort" value="587"/>
<property name="mailServerDefaultFrom" value="mailtasktest1@gmail.com"/>
<property name="mailServerUseTLS" value="true"/>
<property name="mailServerUsername" value="mailtasktest1@gmail.com"/>
<property name="mailServerPassword" value="mailtask123"/>

In <property name="mailServerDefaultFrom" value=”email of the sender”> include the default address of the sender in case you don't specify the sender in the mail task properties.
email : mailtasktest1@gmail.com
password:mailtask1

In <property name="mailServerUsername" value="mailtasktest1@gmail.com"/>
<property name="mailServerPassword" value="mailtask123"/>
specify the username and password of the sender for authentication purposes.
Here you should include the email address and the password you specified in the “from” field of the mail task.