AnsweredAssumed Answered

about email authentication...

Question asked by jcosano on Dec 14, 2010
Latest reply on Dec 16, 2010 by jbarrez
MailActivitiBehaviour.setMailServerProperties has:

  String user = config.getMailServerUsername();
    String password = config.getMailServerPassword();
    if (user != null && password != null) {
      email.setAuthentication(user, password);

And ProcessEngineConfiguration has:

  protected String mailServerUsername = "activiti";
  protected String mailServerPassword = "activiti";

Then, always is trying to send email with authentication… then, if server hasn't authentication, is not a problem this?

Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.XXXXX:25
        at org.apache.commons.mail.Email.sendMimeMessage(
        at org.apache.commons.mail.Email.send(
        at org.activiti.engine.impl.bpmn.MailActivityBehavior.execute(
        … 36 more
Caused by: javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Transport.send0(
        at javax.mail.Transport.send(
        at org.apache.commons.mail.Email.sendMimeMessage(

For now I solve this problem

  protected String mailServerUsername = null;
  protected String mailServerPassword = null;