Daisy Open Source CMS

org.outerj.daisy.emailer
Interface Emailer


public interface Emailer

An emailing service. This component is currently mostly meant for Daisy-internal purposes, such as for the notification mails or the new-user registration mails.

This is an optional repository extension component.

The Emailer is obtained from the Repository as follows:

 Emailer emailer = (Emailer)repository.getExtension("Emailer");
 

In the remote repository API, the Emailer extension can be registered as follows:

 RemoteRepositoryManager repositoryManager = ...;
 repositoryManager.registerExtension("Emailer",
     new Packages.org.outerj.daisy.emailer.clientimpl.RemoteEmailerProvider());
 


Method Summary
 void send(String to, String subject, String messageText)
          Sends an email.
 

Method Detail

send

void send(String to,
          String subject,
          String messageText)
          throws RepositoryException
Sends an email. In case for some reason sending the email fails, then the implementation of this service should take care of that (ie retry after certain time, log it, notify an admin, ...), rather then throwing an exception.

Throws:
RepositoryException

Daisy Open Source CMS