Interface IMailNotification
- All Known Implementing Classes:
MailNotification
public interface IMailNotification
This class handles mail notification via SMTP.
This class uses smtp.host in the configuration for smtp
host. The port default (25) is used. If no smtp specified, local
host is used
- Version:
- $Revision$, $Date$
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend one message to one or more addresseesvoidsetContent(String content) sets the content of the emailvoidsetContentType(String contentType) sets the "Content-Type" fieldvoidsets the "From" fieldvoidsetSubject(String subject) sets the "Subject" fieldvoidsets the recipient's email addressvoidsets the recipients' email addresses
-
Method Details
-
sendNotification
send one message to one or more addressees- Throws:
IOExceptionENotificationException
-
setFrom
-
setSubject
-
setContentType
sets the "Content-Type" field- Parameters:
contentType- content type of the email
-
setContent
sets the content of the email- Parameters:
content- the message content
-
setTo
-
setTo
sets the recipient's email address- Parameters:
to- address of the recipient email address
-