Versions Compared

Key

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

...

  1. Set the following properties in the activiti.xml configuration file found in the <EI_HOME>/wso2/business-process/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"/>
    <property name="mailServerPort" value="456"/>
    <property name="mailServerDefaultFrom" value="mailtask@gmail.com"/>
    <property name="mailServerUseSSL" value="true"/>
    <property name="mailServerUsername" value="mailtask@gmail.com"/>
    <property name="mailServerPassword" value="mailtask123"/>
    PropertyDescription
    • <property name="mailServerDefaultFrom" value=”email of the sender”>
    This specifies the default address of the sender. 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 addressandit'scorrespondingpasswordwhich address and its corresponding password, which you specified in the “From” field of the mail task.
    • Port 456 (SSL required):<property name="mailServerUseSSL" value="true"/>
    • Port 587 (TLS required):<property name="mailServerUseTLS" value="true"/>
    Specifiy only one of these two properties in order to specify whether the mail server should use SSL or TLS.
    Note

    If you are using Gmail to try out this scenario, enable IMAP access for Gmail. See Enable IMAP settings in Gmail for more information.

    Info

    If you receive an authentication error, you may have to adjust your account access settings in Gmail as well. See Allowing less secure apps to access your account for more information.

  2. Copy the following jar files into the <EI_HOME>/lib directory and restart the server.