|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.cms.notification.MailNotification
public class MailNotification
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
| Field Summary | |
|---|---|
protected static java.lang.String |
PROP_HOST
|
protected static java.lang.String |
PROP_SMTP_SUBSTORE
|
| Constructor Summary | |
|---|---|
MailNotification()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String PROP_SMTP_SUBSTORE
protected static final java.lang.String PROP_HOST
| Constructor Detail |
|---|
public MailNotification()
| Method Detail |
|---|
public void sendNotification()
throws java.io.IOException,
ENotificationException
sendNotification in interface IMailNotificationjava.io.IOException
ENotificationExceptionpublic void setFrom(java.lang.String from)
setFrom in interface IMailNotificationfrom - email address of the senderpublic void setSubject(java.lang.String subject)
setSubject in interface IMailNotificationsubject - subject of the emailpublic void setContentType(java.lang.String contentType)
setContentType in interface IMailNotificationcontentType - content type of the emailpublic void setContent(java.lang.String content)
setContent in interface IMailNotificationcontent - the message contentpublic void setTo(java.util.Vector addresses)
setTo in interface IMailNotificationaddresses - a list of email addresses of the recipientspublic void setTo(java.lang.String to)
setTo in interface IMailNotificationto - address of the recipient email address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||