com.netscape.certsrv.notification
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: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

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

sendNotification

void sendNotification()
                      throws java.io.IOException,
                             ENotificationException
send one message to one or more addressees

Throws:
java.io.IOException
ENotificationException

setFrom

void setFrom(java.lang.String from)
sets the "From" field

Parameters:
from - email address of the sender

setSubject

void setSubject(java.lang.String subject)
sets the "Subject" field

Parameters:
subject - subject of the email

setContentType

void setContentType(java.lang.String contentType)
sets the "Content-Type" field

Parameters:
contentType - content type of the email

setContent

void setContent(java.lang.String content)
sets the content of the email

Parameters:
content - the message content

setTo

void setTo(java.util.Vector addresses)
sets the recipients' email addresses

Parameters:
addresses - a list of email addresses of the recipients

setTo

void setTo(java.lang.String to)
sets the recipient's email address

Parameters:
to - address of the recipient email address