com.bankframe.services.mail
Interface SendMail

All Superinterfaces:
javax.ejb.EJBObject, ESessionRemote, java.rmi.Remote

public interface SendMail
extends ESessionRemote

The remote interface to the SendMail EJB.


Method Summary
 void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String[] ccAddresses, java.lang.String subject, java.lang.StringBuffer message, java.lang.String content, java.lang.String connTimeout, java.lang.String debug)
          This method sends the email.
 void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String[] ccAddresses, java.lang.String subject, java.lang.String text, java.lang.String content, java.lang.String connTimeout, java.lang.String debug)
          This method sends the email.
 void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String subject, java.lang.String message)
          The sendMail method.
 void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String subject, java.lang.StringBuffer message)
          The sendMail method.
 
Methods inherited from interface com.bankframe.ejb.ESessionRemote
processDataPacket, processDataPackets
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

sendMail

public void sendMail(java.lang.String mailFrom,
                     java.lang.String[] addresses,
                     java.lang.String subject,
                     java.lang.String message)
              throws javax.mail.MessagingException,
                     java.rmi.RemoteException
The sendMail method.

Parameters:
mailFrom - String - from mail address.
addresses - String[] - list of addresses to send mail to.
subject - String - subject of the message.
message - String - body of the message.
Throws:
javax.mail.MessagingException - if an error occurs sending the mail
java.rmi.RemoteException

sendMail

public void sendMail(java.lang.String mailFrom,
                     java.lang.String[] addresses,
                     java.lang.String subject,
                     java.lang.StringBuffer message)
              throws javax.mail.MessagingException,
                     java.rmi.RemoteException
The sendMail method.

Parameters:
mailFrom - String - from mail address.
addresses - String[] - list of addresses to send mail to.
subject - String - subject of the message.
message - StringBuffer - body of the message.
Throws:
javax.mail.MessagingException - if an error occurs sending the mail
java.rmi.RemoteException

sendMail

public void sendMail(java.lang.String mailFrom,
                     java.lang.String[] addresses,
                     java.lang.String[] ccAddresses,
                     java.lang.String subject,
                     java.lang.String text,
                     java.lang.String content,
                     java.lang.String connTimeout,
                     java.lang.String debug)
              throws javax.mail.MessagingException,
                     java.rmi.RemoteException
This method sends the email.

Parameters:
mailFrom - is the address of the sender
addresses - String[] - list of addresses to send mail to.
ccAddresses - is an array of CC-addresses to CC the mail to, this can be null
subject - is the subject title
text - is the mail message
content - is the content type of the message, defaults to "text/plain" if null
connTimeout - is the timeout value for sending the message, default to infinite if null
debug - indicates if the mail API is set in debug mode, this can be null
Throws:
javax.mail.MessagingException - if an error occurs sending the mail
java.rmi.RemoteException

sendMail

public void sendMail(java.lang.String mailFrom,
                     java.lang.String[] addresses,
                     java.lang.String[] ccAddresses,
                     java.lang.String subject,
                     java.lang.StringBuffer message,
                     java.lang.String content,
                     java.lang.String connTimeout,
                     java.lang.String debug)
              throws javax.mail.MessagingException,
                     java.rmi.RemoteException
This method sends the email.

Parameters:
mailFrom - is the address of the sender
addresses - String[] - list of addresses to send mail to.
ccAddresses - is an array of CC-addresses to CC the mail to, this can be null
subject - is the subject title
message - StringBuffer - body of the message.
content - is the content type of the message, defaults to "text/plain" if null
connTimeout - is the timeout value for sending the message, default to infinite if null
debug - indicates if the mail API is set in debug mode, this can be null
Throws:
javax.mail.MessagingException - if an error occurs sending the mail
java.rmi.RemoteException


Copyright © 2005, 2007, Oracle. All rights reserved.