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 TypeMethodDescriptionvoid
send one message to one or more addresseesvoid
setContent
(String content) sets the content of the emailvoid
setContentType
(String contentType) sets the "Content-Type" fieldvoid
sets the "From" fieldvoid
setSubject
(String subject) sets the "Subject" fieldvoid
sets the recipient's email addressvoid
sets the recipients' email addresses
-
Method Details
-
sendNotification
send one message to one or more addressees- Throws:
IOException
ENotificationException
-
setFrom
sets the "From" field- Parameters:
from
- email address of the sender
-
setSubject
sets the "Subject" field- Parameters:
subject
- subject of the email
-
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
sets the recipients' email addresses- Parameters:
addresses
- a list of email addresses of the recipients
-
setTo
sets the recipient's email address- Parameters:
to
- address of the recipient email address
-