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(Email.java:1242)
        at org.apache.commons.mail.Email.send(Email.java:1267)
        at org.activiti.engine.impl.bpmn.MailActivityBehavior.execute(MailActivityBehavior.java:59)
        … 36 more
Caused by: javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect(Service.java:319)
        at javax.mail.Service.connect(Service.java:169)
        at javax.mail.Service.connect(Service.java:118)
        at javax.mail.Transport.send0(Transport.java:188)
        at javax.mail.Transport.send(Transport.java:118)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)

For now I solve this problem

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

Outcomes