|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.email.SendEmail
public class SendEmail
Helper-class for sending emails.
| Constructor Summary | |
|---|---|
SendEmail()
The Constructor. |
|
SendEmail(java.util.Properties properties)
The Constructor. |
|
| Method Summary | |
|---|---|
protected javax.mail.Session |
getSession()
Gets the Session-object. |
boolean |
isDebug()
Checks the debug flag if it is true or false. |
java.lang.String |
sendEmail(EmailAttachments emailAttachments)
Sends the EmailMessage thats wrappes from the EmailAttachments. |
java.lang.String |
sendEmail(EmailMessage emailMessage)
Sends the given EmailMessage. |
java.lang.String |
sendEmail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
Sends a simple email. |
void |
setDebug(boolean debug)
Sets the debug flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SendEmail()
public SendEmail(java.util.Properties properties)
properties - the properties| Method Detail |
|---|
protected javax.mail.Session getSession()
public boolean isDebug()
public java.lang.String sendEmail(EmailAttachments emailAttachments)
throws javax.mail.MessagingException
emailAttachments - The EmailAttachments who wrappes the EmailMessage.
javax.mail.MessagingException - if an error occurs.
public java.lang.String sendEmail(EmailMessage emailMessage)
throws javax.mail.MessagingException
emailMessage - The EmailMessage to send.
javax.mail.MessagingException - if an error occurs.
public java.lang.String sendEmail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
throws javax.mail.internet.AddressException,
java.io.UnsupportedEncodingException,
javax.mail.MessagingException
to - The to Address.from - The from Address.subject - The subject from the email.message - The Message from the email.
javax.mail.MessagingException - if an error occurs by sending the message.
java.io.UnsupportedEncodingException - if an error occurs by encoding.
javax.mail.internet.AddressException - the address exceptionpublic void setDebug(boolean debug)
debug - The debug flag to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||