org.rapla.plugin.mail
Class MailPlugin
java.lang.Object
org.rapla.plugin.mail.MailPlugin
- All Implemented Interfaces:
- PluginDescriptor
public class MailPlugin
- extends Object
- implements PluginDescriptor
Provides the MailToUserInterface and the MailInterface for sending mails.
The MailInterface can only be used on a machine that can connect to the mailserver.
While the MailToUserInterface can be called from a client, it redirects the mail request to
the server, which must be able to connect to the mailserver.
Example 1:
MailToUserInterface mail = (MailToUserInterface) getContext().loopup( MailToUserInterface.ROLE );
mail.sendMail( subject, body );
Example 2:
MailInterface mail = (MailInterface) getContext().loopup( MailInterface.ROLE );
mail.sendMail( senderMail, recipient, subject, body );
- See Also:
MailInterface
,
MailToUserInterface
MAIL_ON_SERVER
public static final String MAIL_ON_SERVER
MAIL_ON_LOCALHOST
public static final String MAIL_ON_LOCALHOST
DEFAULT_SENDER_ENTRY
public static final String DEFAULT_SENDER_ENTRY
- See Also:
- Constant Field Values
DEFAULT_MAIL_CLASS
public static String DEFAULT_MAIL_CLASS
MailPlugin
public MailPlugin()
toString
public String toString()
- Overrides:
toString
in class Object
provideServices
public void provideServices(Container container,
Configuration config)
- Specified by:
provideServices
in interface PluginDescriptor
getPluginMetaInfos
public Object getPluginMetaInfos(String key)
- Specified by:
getPluginMetaInfos
in interface PluginDescriptor
Copyright © 2000-2006 Rapla Team. All Rights Reseserved.