Java Code Examples for org.apache.commons.mail.Email#setMailSessionFromJNDI()

The following examples show how to use org.apache.commons.mail.Email#setMailSessionFromJNDI() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MailActivityBehavior.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
protected void setEmailSession(Email email, String mailSessionJndi) {
  try {
    email.setMailSessionFromJNDI(mailSessionJndi);
  } catch (NamingException e) {
    throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
  }
}
 
Example 2
Source File: MailActivityBehavior.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
protected void setEmailSession(Email email, String mailSessionJndi) {
  try {
    email.setMailSessionFromJNDI(mailSessionJndi);
  } catch (NamingException e) {
    throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
  }
}
 
Example 3
Source File: MailActivityBehavior.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new FlowableException("Could not send email: Incorrect JNDI configuration", e);
    }
}
 
Example 4
Source File: MailActivityBehavior.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new FlowableException("Could not send email: Incorrect JNDI configuration", e);
    }
}
 
Example 5
Source File: MailActivityBehavior.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
    }
}