Search in sources :

Example 1 with SmtpMailClient

use of org.nhind.xdm.impl.SmtpMailClient in project nhin-d by DirectProject.

the class DocumentRepositoryAbstract method getMailClient.

private MailClient getMailClient() {
    if (mailClient == null) {
        String hostname = config.getMailHost();
        String username = config.getMailUser();
        String password = config.getMailPass();
        mailClient = new SmtpMailClient(hostname, username, password);
    }
    return mailClient;
}
Also used : SmtpMailClient(org.nhind.xdm.impl.SmtpMailClient)

Aggregations

SmtpMailClient (org.nhind.xdm.impl.SmtpMailClient)1