Java Code Examples for org.apache.commons.mail.Email#setMailSessionFromJNDI()
The following examples show how to use
org.apache.commons.mail.Email#setMailSessionFromJNDI() .
These examples are extracted from open source projects.
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 Project: activiti6-boot2 File: MailActivityBehavior.java License: Apache License 2.0 | 5 votes |
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 Project: activiti6-boot2 File: MailActivityBehavior.java License: Apache License 2.0 | 5 votes |
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 Project: flowable-engine File: MailActivityBehavior.java License: Apache License 2.0 | 5 votes |
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 Project: flowable-engine File: MailActivityBehavior.java License: Apache License 2.0 | 5 votes |
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 Project: flowable-engine File: MailActivityBehavior.java License: Apache License 2.0 | 5 votes |
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); } }