程序包 | 说明 |
---|---|
com.sh.mail.core |
限定符和类型 | 类和说明 |
---|---|
class |
HtmlEmail
Description: An HTML multipart email.
|
class |
MultiPartEmail
Description: This class is used to send multi-part internet email like messages with attachments.
|
class |
SimpleEmail
Description: This class is used to send simple internet email messages without attachments.
|
限定符和类型 | 方法和说明 |
---|---|
Email |
Email.addBcc(java.lang.String email)
Add a blind BCC recipient to the email.
|
Email |
Email.addBcc(java.lang.String email,
java.lang.String name)
Add a blind BCC recipient to the email using the specified address and
the specified personal name.
|
Email |
Email.addBcc(java.lang.String email,
java.lang.String name,
java.lang.String charset)
Add a blind BCC recipient to the email using the specified address,
personal name, and charset encoding for the name.
|
Email |
Email.addCc(java.lang.String email)
Add a recipient CC to the email.
|
Email |
Email.addCc(java.lang.String email,
java.lang.String name)
Add a recipient CC to the email using the specified address and the
specified personal name.
|
Email |
Email.addCc(java.lang.String email,
java.lang.String name,
java.lang.String charset)
Add a recipient CC to the email using the specified address, personal
name, and charset encoding for the name.
|
Email |
MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart)
Add a new part to the email.
|
Email |
MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart,
int index)
Add a new part to the email.
|
Email |
MultiPartEmail.addPart(java.lang.String partContent,
java.lang.String partContentType)
Add a new part to the email.
|
Email |
Email.addReplyTo(java.lang.String email)
Add a reply to address to the email.
|
Email |
Email.addReplyTo(java.lang.String email,
java.lang.String name)
Add a reply to address to the email using the specified address and
the specified personal name.
|
Email |
Email.addReplyTo(java.lang.String email,
java.lang.String name,
java.lang.String charset)
Add a reply to address to the email using the specified address,
personal name, and charset encoding for the name.
|
Email |
Email.addTo(java.lang.String email)
Add a recipient TO to the email.
|
Email |
Email.addTo(java.lang.String email,
java.lang.String name)
Add a recipient TO to the email using the specified address and the
specified personal name.
|
Email |
Email.addTo(java.lang.String email,
java.lang.String name,
java.lang.String charset)
Add a recipient TO to the email using the specified address, personal
name, and charset encoding for the name.
|
Email |
Email.setBcc(java.util.Collection aCollection)
Set a list of "BCC" addresses.
|
Email |
Email.setBounceAddress(java.lang.String email)
Set the "bounce address" - the address to which undeliverable messages
will be returned.
|
Email |
Email.setCc(java.util.Collection aCollection)
Set a list of "CC" addresses.
|
Email |
Email.setFrom(java.lang.String email)
Set the FROM field of the email to use the specified address.
|
Email |
Email.setFrom(java.lang.String email,
java.lang.String name)
Set the FROM field of the email to use the specified address and the
specified personal name.
|
Email |
Email.setFrom(java.lang.String email,
java.lang.String name,
java.lang.String charset)
Set the FROM field of the email to use the specified address, personal
name, and charset encoding for the name.
|
Email |
SimpleEmail.setMsg(java.lang.String msg)
Set the content of the mail
|
Email |
MultiPartEmail.setMsg(java.lang.String msg)
Set the message of the email.
|
Email |
HtmlEmail.setMsg(java.lang.String msg)
Set the message.
|
abstract Email |
Email.setMsg(java.lang.String msg)
Define the content of the mail.
|
Email |
Email.setReplyTo(java.util.Collection aCollection)
Set a list of reply to addresses.
|
Email |
Email.setSubject(java.lang.String aSubject)
Set the email subject.
|
Email |
Email.setTo(java.util.Collection aCollection)
Set a list of "TO" addresses.
|