|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectejel.Email
public class Email
Hold all the data needed to send an email via a SMTP Server to one or more recipients
| Field Summary | |
|---|---|
static java.lang.String |
EMAIL_REGEX
Regular expression used to validate email addresses |
static java.lang.String |
IMG_SRC_REGEX
Regular expression used to extract html IMG tag source file |
| Constructor Summary | |
|---|---|
Email(java.lang.String sndr,
java.lang.String rply2,
boolean dlvryRcpt,
java.lang.String sbjct,
java.io.File txtFile,
java.io.File htmlFile)
Constructs an email object that holds all the needed data to send emails |
|
Email(java.lang.String sndr,
java.lang.String rply2,
boolean dlvryRcpt,
java.lang.String sbjct,
java.lang.String txt,
java.lang.String html)
Construct an Email object that holds all the needed data to send emails |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the Email object and returns a cloned Email object |
Attachment[] |
convertFilesToContentIDs(java.lang.String workDir)
Converts the images files attached to the html message to content IDs and returns the Attachment array of the attached files detected. |
java.lang.String |
getCharset()
Gets the default charset name of the message html/text |
java.lang.String |
getContentTransferEncoding()
Gets the content transfer encoding name of the message html/text |
boolean |
getDeliveryReceiptStatus()
Gets the delivery receipt status |
java.lang.String |
getHtmlMessage()
Gets the html message content |
java.lang.String |
getReplyToAddress()
Gets the reply to email address |
java.lang.String |
getSenderName()
Gets the sender friendly name |
java.lang.String |
getSubject()
Gets the email subject |
java.lang.String |
getTextMessage()
Gets the text message content of the email |
void |
setCharset(java.lang.String newCharset)
Sets a new charset name for the email message content |
void |
setContentTransferEncoding(java.lang.String cte)
Sets the Content Transfer Encoding for the email message content. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMAIL_REGEX
public static final java.lang.String IMG_SRC_REGEX
| Constructor Detail |
|---|
public Email(java.lang.String sndr,
java.lang.String rply2,
boolean dlvryRcpt,
java.lang.String sbjct,
java.lang.String txt,
java.lang.String html)
throws java.lang.IllegalArgumentException
sndr - Sender friendly namerply2 - Reply to email address or nulldlvryRcpt - Set to true to request a delivery receipt from the recipientssbjct - Email subjecttxt - Text message contenthtml - Html messsage content
java.lang.IllegalArgumentException
public Email(java.lang.String sndr,
java.lang.String rply2,
boolean dlvryRcpt,
java.lang.String sbjct,
java.io.File txtFile,
java.io.File htmlFile)
throws java.lang.IllegalArgumentException,
java.io.FileNotFoundException,
java.io.IOException
sndr - Sender friendly namerply2 - Reply to email address or nulldlvryRcpt - Set to true to request a delivery receipt from the recipientssbjct - Email subjecttxtFile - File object instance to load the plain text message from or null to ignorehtmlFile - File object instance to load the html message from or null to ignore
java.lang.IllegalArgumentException
java.io.FileNotFoundException
java.io.IOException| Method Detail |
|---|
public java.lang.String getCharset()
public java.lang.String getContentTransferEncoding()
public Attachment[] convertFilesToContentIDs(java.lang.String workDir)
throws java.io.FileNotFoundException
workDir - The parent folder of relative files path
java.io.FileNotFoundExceptionpublic java.lang.String getSenderName()
public java.lang.String getReplyToAddress()
public java.lang.String getSubject()
public java.lang.String getTextMessage()
public java.lang.String getHtmlMessage()
public boolean getDeliveryReceiptStatus()
public java.lang.Object clone()
clone in class java.lang.Object
public void setCharset(java.lang.String newCharset)
throws java.lang.IllegalArgumentException
newCharset - The charset name for the email message content
java.lang.IllegalArgumentException
public void setContentTransferEncoding(java.lang.String cte)
throws java.lang.IllegalArgumentException
cte - The Content Transfer Encoding for the email message content
java.lang.IllegalArgumentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||