|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xfp.components.SMTPHelper
Helper class for SMTP.
Nested Class Summary | |
class |
SMTPHelper.MailAuthenticator
Class for SMTP authentication. |
Constructor Summary | |
SMTPHelper()
|
Method Summary | |
javax.mail.internet.MimeMessage |
createMessage(java.lang.String from,
java.util.List to,
java.lang.String subject,
java.lang.String data)
Creates a message. |
javax.mail.Session |
getSession()
|
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
|
void |
sendMessage(javax.mail.Message mail)
Sends a message. |
java.lang.String |
toString()
toString. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SMTPHelper()
Method Detail |
public java.lang.String toString()
public javax.mail.internet.MimeMessage createMessage(java.lang.String from, java.util.List to, java.lang.String subject, java.lang.String data) throws javax.mail.internet.AddressException, javax.mail.MessagingException
from
- Sender addressto
- Recipients addresses. List of String
subject
- Message subjectdata
- Message body
javax.mail.internet.AddressException
- exception
javax.mail.MessagingException
- exceptionpublic void sendMessage(javax.mail.Message mail) throws javax.mail.MessagingException
mail
- The JavaMail message
javax.mail.MessagingException
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException
parameterize
in interface org.apache.avalon.framework.parameters.Parameterizable
org.apache.avalon.framework.parameters.ParameterException
Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public javax.mail.Session getSession()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |