|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjasp.pop3.Mailer
J-ASP POP3 allows you to receive mail using the industry standard POP3 protocol in Java. Features include:
| Constructor Summary | |
Mailer()
|
|
| Method Summary | |
void |
ClosePop3()
Quits the current POP3 session and closes the connection. |
boolean |
Delete(int id)
Permanently deletes the specified message from the server. |
boolean |
EraseFile(java.lang.String filename)
Permanently deletes a file from the local drive. |
int |
getAttAchmentcount()
Returns the number of attachements that were found within the message. |
boolean |
GetAttachmentInfo(int id)
Gets the properties for the specified attachment and fill in the AttContentType, AttFileName and AttFileSize properties |
java.lang.String |
getAttContentType()
Returns the ContentType for a message attachment after you call Mailer. |
java.lang.String |
getAttFileName()
Returns the FileName for a message attachment after you call Mailer. |
int |
getAttFileSize()
Returns the FileSize for a message attachment after you call Mailer. |
java.lang.String |
getBodyText()
Returns the message text |
java.lang.String |
getCC()
Returns any CarbonCopy addresses the message was sent to |
java.lang.String |
getDate()
|
int |
getEncoding()
Returns the encode of the message. |
java.lang.String |
getError()
Returns any error message if a failure is detected by the component |
java.lang.String |
getExpires()
|
java.lang.String |
getFromaddress()
Returns The message originator's email address. |
java.lang.String |
getFromName()
Returns The message originator's name. |
java.lang.String |
GetHeaderField(java.lang.String header)
Queries the current message for any specific header field information. |
java.lang.String |
getMailDirectory()
|
int |
getMessageCount()
Returns the number of the messages are located on the server. |
java.lang.String |
getMessageID()
Returns the MessageID header for the Retrieved message |
boolean |
GetPopHeader(int id)
Allows you to retrieve the header information for one message instead of all messages. |
boolean |
GetPopHeaders()
Provides a simple interface to retrieving information about each message on the server. |
int |
getPriority()
Gets the message priority. |
java.lang.String |
getRecipients()
Returns any To: addresses the message was sent to |
java.lang.String |
getRemoteHost()
Gets the RemoteHost name or IP address |
boolean |
getReturnReceipt()
Returns The ReturnReceipt flag. |
java.lang.String |
getSubject()
Returns the Subject of the message that you have retrieved |
int |
getTimeout()
Gets the maximum time to wait for a response from the POP3 server. |
java.lang.String |
getUserName()
Gets the user name of the account on the POP3 server |
java.lang.String |
getVersion()
|
boolean |
OpenPop3()
Opens the connection to the POP3 RemoteHost using the UserName and Password properties. |
boolean |
Retrieve(int id)
Rretrieves the entire message from the POP3 server including any attachments. |
boolean |
RetrieveToFile(int id,
java.lang.String file)
Pulls the message without processing anything. |
java.lang.String |
RetrieveToMemory(int id)
Retrieves the specified message and returns the message in an unprocessed form. |
boolean |
SaveAttachment(int id)
Saves an attachment to the MailDirectory's path. |
boolean |
SaveAttachmentToFile(int id,
java.lang.String file)
Saves an attachment to the MailDirectory's path. |
void |
setHtmlPartAsAttach(boolean flag)
If flag is true, set the HTMLPart as an attachment. |
void |
setMailDirectory(java.lang.String m)
|
void |
setPassword(java.lang.String pwd)
Sets the password of the account on the POP3 server. |
void |
setPop3Log(java.lang.String log)
You can debug a POP3 session by assigning a path and filename to the POP3Log property. |
void |
setRemoteHost(java.lang.String host)
Sets the host name or IP address of the POP3 server you will be pulling messages from. |
void |
setTimeout(int t)
Sets the maximum time to wait for a response from the POP3 server |
void |
setUserName(java.lang.String us)
Sets the user name of the account on the POP3 server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Mailer()
| Method Detail |
public java.lang.String getAttContentType()
public java.lang.String getAttFileName()
public java.lang.String getDate()
public int getAttFileSize()
public int getAttAchmentcount()
public java.lang.String getBodyText()
public java.lang.String getCC()
public java.lang.String getError()
public int getEncoding()
public java.lang.String getExpires()
public void setHtmlPartAsAttach(boolean flag)
public java.lang.String getFromaddress()
public java.lang.String getFromName()
public java.lang.String getMailDirectory()
public void setMailDirectory(java.lang.String m)
public int getMessageCount()
public java.lang.String getMessageID()
public void setPassword(java.lang.String pwd)
public void setPop3Log(java.lang.String log)
public int getPriority()
public java.lang.String getRecipients()
public java.lang.String getRemoteHost()
public void setRemoteHost(java.lang.String host)
public boolean getReturnReceipt()
public java.lang.String getSubject()
public void setTimeout(int t)
public int getTimeout()
public void setUserName(java.lang.String us)
public java.lang.String getUserName()
public java.lang.String getVersion()
public void ClosePop3()
public boolean Delete(int id)
public boolean EraseFile(java.lang.String filename)
public boolean GetAttachmentInfo(int id)
public java.lang.String GetHeaderField(java.lang.String header)
public boolean GetPopHeader(int id)
public boolean GetPopHeaders()
public boolean OpenPop3()
throws java.lang.Exception
java.lang.Exceptionpublic boolean Retrieve(int id)
public boolean RetrieveToFile(int id,
java.lang.String file)
public java.lang.String RetrieveToMemory(int id)
public boolean SaveAttachment(int id)
public boolean SaveAttachmentToFile(int id,
java.lang.String file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||