title: How to send mail through BPMN 2.0 with Camunda?
body: <p>I try to send mail with only BPMN 2.0 and not with DelegateTask or a listener. </p>
  
  <p>I tried this :</p>
  
  <pre><code>&lt;bpmn2:serviceTask id="ServiceTask_1" name="mailService" camunda:type="mail"&gt;
    &lt;bpmn2:extensionElements&gt;
      &lt;camunda:field name="to" stringValue="test@test.com" /&gt;
      &lt;camunda:field name="subject" expression="Hello" /&gt;
      &lt;camunda:field name="html" expression="Hello" /&gt;
     &lt;/bpmn2:extensionElements&gt;
  &lt;/bpmn2:serviceTask&gt;
  </code></pre>
  
  <p>But it fail :</p>
  
  <pre><code>Caused by: org.camunda.bpm.engine.ClassLoadingException: Could not load class: org.camunda.bpm.engine.impl.bpmn.behavior.MailActivityBehavior
      at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:85)
      at org.camunda.bpm.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:147)
      ... 43 more
  Caused by: java.lang.NoClassDefFoundError: org/apache/commons/mail/EmailException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:65)
      ... 44 more
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.mail.EmailException
  </code></pre>
  
  <p>I've also add mail-1.5.0.jar, commons-emails-1.2.jar and commons-logging-1.jar to $CAMUNDA_HOME/server/apache-tomcat-<em>*</em>/lib.</p>
  
  <p>I work with Camunda 7.1.0-Final on Tomcat server.</p>