|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ejb.ESessionBean
com.bankframe.services.mail.SendMailBean
public class SendMailBean
The Mail service allows a BankFrame MCA based system to send e-mail messages to a specified user over the Internet or an Intranet.
It uses Sun's javax.mail API to create and send e-mail messages.
Note, that the MCA Mail Service only sends e-mail.
Constructor Summary | |
---|---|
SendMailBean()
|
Method Summary | |
---|---|
void |
ejbCreate()
The ejbCreate method |
void |
ejbPostCreate()
The ejbPostCreate method. |
Vector |
processDataPacket(DataPacket data)
The processDataPacket method is responsible for handling a DataPacket that contains a request to send an email. |
void |
sendMail(String mailFrom,
String[] addresses,
String[] ccAddresses,
String subject,
StringBuffer message,
String content,
String connTimeout,
String debug)
This method sends the email. |
void |
sendMail(String mailFrom,
String[] addresses,
String[] ccAddresses,
String subject,
String text,
String content,
String connTimeout,
String debug)
This method sends the email. |
void |
sendMail(String mailFrom,
String[] addresses,
String subject,
String text)
Sends the email. |
void |
sendMail(String mailFrom,
String[] addresses,
String subject,
StringBuffer message)
This method sends the email. |
Methods inherited from class com.bankframe.ejb.ESessionBean |
---|
audit, ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SendMailBean()
Method Detail |
---|
public void ejbCreate()
ejbCreate
in class ESessionBean
public void ejbPostCreate()
ejbPostCreate
in class ESessionBean
public Vector processDataPacket(DataPacket data) throws ProcessingErrorException, RemoteException
processDataPacket
in interface ESession
processDataPacket
in class ESessionBean
data
- DataPacket Contains the data to send the emails.
ProcessingErrorException
- The exception thrown if there is an error in processing the mail request.
RemoteException
public void sendMail(String mailFrom, String[] addresses, String[] ccAddresses, String subject, String text, String content, String connTimeout, String debug) throws MessagingException
mailFrom
- is the address of the senderaddresses
- is an array of addresses to send the mail toccAddresses
- is an array of CC-addresses to CC the mail tosubject
- is the subject titletext
- is the mail messagecontent
- is the content type of the message, defaults to "text/plain" if nullconnTimeout
- is the timeout value for sending the message, default to 15000 if nulldebug
- indicates if the mail API is set in debug mode, this can be null
MessagingException
- if an error occurs sending the mailpublic void sendMail(String mailFrom, String[] addresses, String subject, String text) throws MessagingException
mailFrom
- is the address of the senderaddresses
- is an array of addresses to send the mail tosubject
- is the subject titletext
- is the mail message
MessagingException
- if an error occurs sending the mailpublic void sendMail(String mailFrom, String[] addresses, String subject, StringBuffer message) throws MessagingException
addresses
- is an array of addresses to send the mail tosubject
- is the subject titlemessage
- is the mail message
MessagingException
- if an error occurs sending the mailpublic void sendMail(String mailFrom, String[] addresses, String[] ccAddresses, String subject, StringBuffer message, String content, String connTimeout, String debug) throws MessagingException
addresses
- is an array of addresses to send the mail toccAddresses
- is an array of CC-addresses to CC the mail tosubject
- is the subject titlemessage
- is the mail messagecontent
- is the content type of the message, defaults to "text/plain" if nullconnTimeout
- is the timeout value for sending the message, default to infinite if nulldebug
- indicates if the mail API is set in debug mode, this can be null
MessagingException
- if an error occurs sending the mail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |