cancel
Showing results for 
Search instead for 
Did you mean: 

about email authentication...

jcosano
Champ in-the-making
Champ in-the-making
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;
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You are correct. I updated the default name and password to null on trunk.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.