|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.mail.SendEmail
public final class SendEmail
Send an email. Use class SendEmailThread for send
the email.
| Field Summary | |
|---|---|
static java.lang.String |
MIME_SUBTYPE_HTML
The MIME subtype for html. |
static java.lang.String |
MIME_SUBTYPE_PLAIN
The MIME subtype for plain. |
| Constructor Summary | |
|---|---|
SendEmail()
Create an instance using default server parameters from jfw.properties. |
|
SendEmail(java.lang.String host)
Create an instance. |
|
SendEmail(java.lang.String host,
java.lang.String username,
java.lang.String password)
Create an instance. |
|
| Method Summary | |
|---|---|
void |
send(java.lang.String from,
java.util.ArrayList to,
java.util.ArrayList cc,
java.util.ArrayList bcc,
java.lang.String object,
java.lang.String text)
Send mail to more mail addresses, in cc and bcc. |
void |
send(java.lang.String from,
java.util.ArrayList to,
java.util.ArrayList cc,
java.lang.String object,
java.lang.String text)
Send mail to more mail addresses. |
void |
send(java.lang.String from,
java.util.ArrayList to,
java.lang.String object,
java.lang.String text)
Send mail to more mail addresses. |
void |
send(java.lang.String from,
java.lang.String to,
java.util.ArrayList cc,
java.lang.String object,
java.lang.String text)
Send mail to a single mail address. |
void |
send(java.lang.String from,
java.lang.String to,
java.lang.String object,
java.lang.String text)
Send mail to a single mail address. |
void |
setCharsetEncoding(java.lang.String charsetEncoding)
Set attribute subcontentType. |
void |
setContentType(java.lang.String subcontentType)
Set attribute subcontentType. |
void |
setDebug(boolean isDebug)
Set attribute isDebug. |
void |
setIsSecure(boolean isSecure)
Set attribute isSecure. |
void |
setPort(java.lang.String port)
Set attribute port. |
void |
setWaitSend(boolean waitSend)
Set attribute waitSend. |
java.lang.String |
toString()
Return log informations relative of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MIME_SUBTYPE_PLAIN
public static final java.lang.String MIME_SUBTYPE_HTML
| Constructor Detail |
|---|
public SendEmail()
public SendEmail(java.lang.String host)
host - mail server to use for send the email.
public SendEmail(java.lang.String host,
java.lang.String username,
java.lang.String password)
host - mail server to use for send the email.| Method Detail |
|---|
public void setContentType(java.lang.String subcontentType)
subcontentType.MIME_SUBTYPE_PLAIN.
subcontentType - subcontent type to use.public void setCharsetEncoding(java.lang.String charsetEncoding)
subcontentType.
charsetEncoding - content type to use.public void setDebug(boolean isDebug)
isDebug. Default value is true.
isDebug - debug mode.public void setPort(java.lang.String port)
port.
port - the port.public void setIsSecure(boolean isSecure)
isSecure.
isSecure - set SSL use for connection.public void setWaitSend(boolean waitSend)
waitSend. Default value is false: the mail
is send asynchronously.
waitSend - send email mode.
public void send(java.lang.String from,
java.lang.String to,
java.lang.String object,
java.lang.String text)
throws JFWGenericException
from - mail address of sender.to - mail address of receiver.object - mail object.text - mail text.
JFWGenericException
public void send(java.lang.String from,
java.util.ArrayList to,
java.lang.String object,
java.lang.String text)
throws JFWGenericException
from - mail address of sender.to - mail addresses of receivers.object - mail object.text - mail text.
JFWGenericException
public void send(java.lang.String from,
java.lang.String to,
java.util.ArrayList cc,
java.lang.String object,
java.lang.String text)
throws JFWGenericException
from - mail address of sender.to - mail address of receiver.cc - mail addresses of Cc.object - mail object.text - mail text.
JFWGenericException
public void send(java.lang.String from,
java.util.ArrayList to,
java.util.ArrayList cc,
java.lang.String object,
java.lang.String text)
throws JFWGenericException
from - mail address of sender.to - mail addresses of receivers.cc - mail addresses of Cc.object - mail object.text - mail text.
JFWGenericException
public void send(java.lang.String from,
java.util.ArrayList to,
java.util.ArrayList cc,
java.util.ArrayList bcc,
java.lang.String object,
java.lang.String text)
throws JFWGenericException
from - mail address of sender.to - mail addresses of receivers.cc - mail addresses of Cc.bcc - mail addresses of Bcc.object - mail object.text - mail text.
JFWGenericExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||