|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.win32.mapi.MapiMessage
This class is designed for creating and sending email messages using MAPI.
| Constructor Summary | |
MapiMessage()
Creates a new empty message. |
|
MapiMessage(java.util.List to)
Creates a new empty message. |
|
MapiMessage(MailContact to)
Creates a new empty message. |
|
MapiMessage(MailContact from,
java.util.List to)
Creates a new empty message. |
|
MapiMessage(MailContact from,
MailContact to)
Creates a new empty message. |
|
| Method Summary | |
void |
addRecipient(MailContact recipient)
Adds the specified recipient to the list of the message receivers. |
void |
addRecipients(java.util.List recipients)
Add the list of recipients of the message. |
void |
attachFile(java.io.File file)
Attaches the specified file to the message. |
void |
attachFiles(java.util.List files)
Attaches the list of files to the message. |
java.util.List |
getAttachedFiles()
Returns the list of files attached to the message. |
java.util.List |
getRecipients()
Returns the list of recipients of the message. |
MailContact |
getSender()
Returns the sender of the message. |
java.lang.String |
getSubject()
Returns the subject of the message. |
java.lang.String |
getText()
Returns the content of the message. |
boolean |
isLogonUI()
Returns true if the logon dialog window will appear in case the e-mail account login/password is incorrect. |
boolean |
removeAttachedFile(java.io.File file)
Removes the specified first the message attachements. |
boolean |
removeRecipient(MailContact recipient)
Removes the specified mail recipient from the list of the message receivers. |
boolean |
send(boolean showDialog)
Sends the current message. |
void |
setLogonUI(boolean logonUI)
Determines if the logon dialog window will appear in case the e-mail account login/password is incorrect. |
void |
setSender(MailContact sender)
Specifies the sender of the message. |
void |
setSubject(java.lang.String subject)
Specifies the subject of the message. |
void |
setText(java.lang.String text)
Specifies the content of the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapiMessage()
public MapiMessage(MailContact to)
to - is the receiver of the message.
java.lang.IllegalArgumentException - if the specified mail receiver is
of the SENDER type.
public MapiMessage(MailContact from,
MailContact to)
from - specifies the sender of the message.to - is the receiver of the message.
java.lang.IllegalArgumentException - if the specified mail receiver is of the SENDER type or
the specified mail sender is not if the SENDER type.public MapiMessage(java.util.List to)
to - a list of message receivers. Each item of the list is an instance of the MailContact class.
java.lang.IllegalArgumentException - if one the specified mail receivers is of the SENDER type.
public MapiMessage(MailContact from,
java.util.List to)
from - is the sender of the message.to - a list of message receivers. Each item of the list is an instance of the MailContact class.
java.lang.IllegalArgumentException - if the one of the specified mail receivers is of the SENDER type or
the specified mail sender is not if the SENDER type.| Method Detail |
public boolean send(boolean showDialog)
throws MapiException
showDialog - if true, the dialog window will be shown.
MapiExceptionpublic java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - is the subject of the message.public java.lang.String getText()
public void setText(java.lang.String text)
text - is the content of the message.public java.util.List getRecipients()
MailContact class.
public void addRecipients(java.util.List recipients)
MailContact class.
Each mail receiver cannot be of the SENDER type.
recipients - is the list of message receivers.
java.lang.IllegalArgumentException - if one the specified mail receivers is of the SENDER type.public void addRecipient(MailContact recipient)
receiver cannot be of the SENDER type.
recipient - is the recipient to be added.
java.lang.IllegalArgumentException - if the specified mail receiver is of the SENDER type.public boolean removeRecipient(MailContact recipient)
recipient - is the mail receiver to be removed.public MailContact getSender()
public void setSender(MailContact sender)
sender should be of the SENDER type.
sender - is the sender of the message.
java.lang.IllegalArgumentException - if the specified mail sender is not if the SENDER type.public java.util.List getAttachedFiles()
File class.
File class.public void attachFiles(java.util.List files)
File class.
files - is the list of files to be attached to the message.public void attachFile(java.io.File file)
file - is the file to be attached.public boolean removeAttachedFile(java.io.File file)
file - is the file to be removed.public boolean isLogonUI()
public void setLogonUI(boolean logonUI)
logonUI - if true, the logon dialog window will appear
in case the e-mail account login/password is incorrect.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||