|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
void |
sendNotification()
send one message to one or more addressees |
void |
setContent(java.lang.String content)
sets the content of the email |
void |
setContentType(java.lang.String contentType)
sets the "Content-Type" field |
void |
setFrom(java.lang.String from)
sets the "From" field |
void |
setSubject(java.lang.String subject)
sets the "Subject" field |
void |
setTo(java.lang.String to)
sets the recipient's email address |
void |
setTo(java.util.Vector addresses)
sets the recipients' email addresses |
Method Detail |
---|
void sendNotification() throws java.io.IOException, ENotificationException
java.io.IOException
ENotificationException
void setFrom(java.lang.String from)
from
- email address of the sendervoid setSubject(java.lang.String subject)
subject
- subject of the emailvoid setContentType(java.lang.String contentType)
contentType
- content type of the emailvoid setContent(java.lang.String content)
content
- the message contentvoid setTo(java.util.Vector addresses)
addresses
- a list of email addresses of the recipientsvoid setTo(java.lang.String to)
to
- address of the recipient email address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |