|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.moyosoft.connector.ms.outlook.item.OutlookItem | +--com.moyosoft.connector.ms.outlook.mail.OutlookMail
Represents an Outlook e-mail item.
For an example on how to send an e-mail, please have a look at this sample application.
This class provides getter and setter methods to access or modify the mail's properties.
Constructor Summary | |
OutlookMail(com.moyosoft.connector.com.Dispatch dispatch)
|
|
OutlookMail(Outlook outlookApplication)
Creates a new mail in the default outbox folder |
|
OutlookMail(OutlookFolder folder)
Creates a new mail in the specified folder |
Method Summary | |
void |
clearConversationIndex()
|
void |
close(InspectorClose saveMode)
|
OutlookAttachment |
createAttachment(java.io.File pAttachmentFile,
AttachmentType pType)
|
OutlookMail |
forward()
|
AttachmentsCollection |
getAttachments()
|
int |
getAttachmentsCount()
|
java.lang.String |
getBCC()
|
java.lang.String |
getBillingInformation()
|
java.lang.String |
getBody()
|
BodyFormat |
getBodyFormat()
The 'BodyFormat' property is only supported by Outlook 2002 or higher. |
java.lang.String |
getCategories()
|
java.lang.String |
getCC()
|
java.lang.String |
getCompanies()
|
ConflictsCollection |
getConflicts()
|
java.lang.String |
getConversationIndex()
|
java.lang.String |
getConversationTopic()
|
java.util.Date |
getDeferredDeliveryTime()
|
DownloadState |
getDownloadState()
|
java.util.Date |
getExpiryTime()
|
java.util.Date |
getFlagDueBy()
|
FlagIcon |
getFlagIcon()
|
java.lang.String |
getFlagRequest()
|
FlagStatus |
getFlagStatus()
|
FormDescription |
getFormDescription()
|
java.lang.String |
getFrom()
Returns the address of this e-mail's originator. |
java.lang.String |
getHTMLBody()
|
ImportanceType |
getImportance()
|
Inspector |
getInspector()
|
int |
getInternetCodepage()
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. |
ItemPropertiesCollection |
getItemProperties()
|
RemoteStatus |
getMarkForDownload()
|
java.lang.String |
getMessageClass()
|
java.lang.String |
getMileage()
|
Permission |
getPermission()
|
PermissionService |
getPermissionService()
|
java.lang.String |
getReceivedByEntryID()
|
java.lang.String |
getReceivedByName()
|
java.lang.String |
getReceivedOnBehalfOfEntryID()
|
java.lang.String |
getReceivedOnBehalfOfName()
|
java.util.Date |
getReceivedTime()
|
RecipientsCollection |
getRecipients()
|
java.lang.String |
getReminderSoundFile()
|
java.util.Date |
getReminderTime()
|
RemoteStatus |
getRemoteStatus()
|
java.lang.String |
getReplyRecipientNames()
|
RecipientsCollection |
getReplyRecipients()
|
java.lang.String |
getReplyToAddress()
Returns the Reply-To address of this message. |
OutlookMailRecipient |
getReplyToRecipient()
Returns a recipient object corresponding to the Reply-To address of this message. |
OutlookFolder |
getSaveSentMessageFolder()
|
AddressEntry |
getSender()
Returns the originator of this message as an AddressEntry object. |
java.lang.String |
getSenderAddress()
Returns the address of this e-mail's originator. |
java.lang.String |
getSenderEmailAddress()
Deprecated. Use the method getSenderAddress instead |
java.lang.String |
getSenderEmailType()
The 'SenderEmailType' property is only supported by Outlook 2003 or higher. |
java.lang.String |
getSenderName()
|
Account |
getSendUsingAccount()
Returns the account used when sending this message. |
SensitivityType |
getSensitivity()
|
java.util.Date |
getSentOn()
|
java.lang.String |
getSentOnBehalfOfName()
|
int |
getSize()
|
java.lang.String |
getSubject()
|
java.lang.String |
getTo()
|
java.lang.String |
getTransportMessageHeaders()
Get the Internet headers from a SMTP message. |
OutlookItemType |
getType()
|
UserPropertiesCollection |
getUserProperties()
|
java.lang.String |
getVotingOptions()
|
java.lang.String |
getVotingResponse()
|
boolean |
isAlternateRecipientAllowed()
|
boolean |
isAutoForwarded()
|
boolean |
isAutoResolvedWinner()
The 'AutoResolvedWinner' property is only supported by Outlook 2003 or higher. |
boolean |
isConflict()
|
boolean |
isDeleteAfterSubmit()
|
boolean |
isEnableSharedAttachments()
|
boolean |
isHasCoverSheet()
|
boolean |
isIPFax()
|
boolean |
isNoAging()
|
boolean |
isOriginatorDeliveryReportRequested()
|
boolean |
isReadReceiptRequested()
|
boolean |
isRecipientReassignmentProhibited()
|
boolean |
isReminderOverrideDefault()
|
boolean |
isReminderPlaySound()
|
boolean |
isReminderSet()
|
boolean |
isSaved()
|
boolean |
isSent()
|
boolean |
isSubmitted()
|
boolean |
isUnRead()
|
OutlookMail |
reply()
|
OutlookMail |
replyAll()
|
void |
send()
|
void |
setAlternateRecipientAllowed(boolean value)
|
void |
setAutoForwarded(boolean value)
|
void |
setBCC(java.lang.String value)
|
void |
setBillingInformation(java.lang.String value)
|
void |
setBody(java.lang.String value)
|
void |
setBodyFormat(BodyFormat value)
The 'BodyFormat' property is only supported by Outlook 2002 or higher. |
void |
setCategories(java.lang.String value)
|
void |
setCC(java.lang.String value)
|
void |
setCompanies(java.lang.String value)
|
void |
setDeferredDeliveryTime(java.util.Date value)
|
void |
setDeleteAfterSubmit(boolean value)
|
void |
setEnableSharedAttachments(boolean value)
|
void |
setExpiryTime(java.util.Date value)
|
void |
setFlagDueBy(java.util.Date value)
|
void |
setFlagIcon(FlagIcon value)
|
void |
setFlagRequest(java.lang.String value)
|
void |
setFlagStatus(FlagStatus value)
|
void |
setHasCoverSheet(boolean value)
|
void |
setHTMLBody(java.lang.String value)
|
void |
setImportance(ImportanceType value)
|
void |
setInternetCodepage(int value)
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. |
void |
setIsIPFax(boolean value)
|
void |
setMarkForDownload(RemoteStatus value)
|
void |
setMessageClass(java.lang.String value)
|
void |
setMileage(java.lang.String value)
|
void |
setNoAging(boolean value)
|
void |
setOriginatorDeliveryReportRequested(boolean value)
|
void |
setPermission(Permission value)
|
void |
setPermissionService(PermissionService value)
|
void |
setReadReceiptRequested(boolean value)
|
void |
setRecipientReassignmentProhibited(boolean value)
|
void |
setReminderOverrideDefault(boolean value)
|
void |
setReminderPlaySound(boolean value)
|
void |
setReminderSet(boolean value)
|
void |
setReminderSoundFile(java.lang.String value)
|
void |
setReminderTime(java.util.Date value)
|
void |
setRemoteStatus(RemoteStatus value)
|
void |
setSaveSentMessageFolder(OutlookFolder folder)
|
void |
setSendUsingAccount(Account account)
Define the account to be used when sending this message. |
void |
setSensitivity(SensitivityType value)
|
void |
setSentOnBehalfOfName(java.lang.String value)
|
void |
setSubject(java.lang.String value)
|
void |
setTo(java.lang.String value)
|
void |
setUnRead(boolean value)
|
void |
setVotingOptions(java.lang.String value)
|
void |
setVotingResponse(java.lang.String value)
|
void |
showCategoriesDialog()
|
Methods inherited from class com.moyosoft.connector.ms.outlook.item.OutlookItem |
copy, create, delete, deleteMapiProperty, deleteMapiProperty, display, display, dispose, equals, getCreationTime, getDispatch, getEntryId, getItemId, getLastModificationTime, getLinks, getMapiProperty, getMapiProperty, getParentFolder, getPropertyAccessor, move, printOut, save, saveAs, saveAs, saveAs, saveAs, setMapiProperty, setMapiProperty |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutlookMail(OutlookFolder folder) throws com.moyosoft.connector.com.ComponentObjectModelException
folder
- the folder where the new mail item will be created
com.moyosoft.connector.com.ComponentObjectModelException
- if a COM error occurs.public OutlookMail(Outlook outlookApplication) throws com.moyosoft.connector.com.ComponentObjectModelException
outlookApplication
- the Outlook application's object
com.moyosoft.connector.com.ComponentObjectModelException
- if a COM error occurs.public OutlookMail(com.moyosoft.connector.com.Dispatch dispatch)
Method Detail |
public OutlookItemType getType()
getType
in class OutlookItem
public java.lang.String getTransportMessageHeaders() throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException
- if any error occurspublic AttachmentsCollection getAttachments()
getAttachments
in interface IAttachmentsContainer
public OutlookAttachment createAttachment(java.io.File pAttachmentFile, AttachmentType pType)
createAttachment
in interface IAttachmentsContainer
public int getAttachmentsCount()
getAttachmentsCount
in interface IAttachmentsContainer
public java.lang.String getBillingInformation()
public void setBillingInformation(java.lang.String value)
public java.lang.String getBody()
public void setBody(java.lang.String value)
public java.lang.String getCategories()
public void setCategories(java.lang.String value)
public java.lang.String getCompanies()
public void setCompanies(java.lang.String value)
public java.lang.String getConversationIndex()
public java.lang.String getConversationTopic()
public FormDescription getFormDescription()
public Inspector getInspector()
public ImportanceType getImportance()
public void setImportance(ImportanceType value)
public java.lang.String getMessageClass()
public void setMessageClass(java.lang.String value)
public java.lang.String getMileage()
public void setMileage(java.lang.String value)
public boolean isNoAging()
public void setNoAging(boolean value)
public boolean isSaved()
public SensitivityType getSensitivity()
public void setSensitivity(SensitivityType value)
public int getSize()
public java.lang.String getSubject()
public void setSubject(java.lang.String value)
public boolean isUnRead()
public void setUnRead(boolean value)
public UserPropertiesCollection getUserProperties()
public void close(InspectorClose saveMode)
public boolean isAlternateRecipientAllowed()
public void setAlternateRecipientAllowed(boolean value)
public boolean isAutoForwarded()
public void setAutoForwarded(boolean value)
public java.lang.String getBCC()
public void setBCC(java.lang.String value)
public java.lang.String getCC()
public void setCC(java.lang.String value)
public java.util.Date getDeferredDeliveryTime()
public void setDeferredDeliveryTime(java.util.Date value)
public boolean isDeleteAfterSubmit()
public void setDeleteAfterSubmit(boolean value)
public java.util.Date getExpiryTime()
public void setExpiryTime(java.util.Date value)
public java.util.Date getFlagDueBy()
public void setFlagDueBy(java.util.Date value)
public java.lang.String getFlagRequest()
public void setFlagRequest(java.lang.String value)
public FlagStatus getFlagStatus()
public void setFlagStatus(FlagStatus value)
public java.lang.String getHTMLBody()
public void setHTMLBody(java.lang.String value)
public boolean isOriginatorDeliveryReportRequested()
public void setOriginatorDeliveryReportRequested(boolean value)
public boolean isReadReceiptRequested()
public void setReadReceiptRequested(boolean value)
public java.lang.String getReceivedByEntryID()
public java.lang.String getReceivedByName()
public java.lang.String getReceivedOnBehalfOfEntryID()
public java.lang.String getReceivedOnBehalfOfName()
public java.util.Date getReceivedTime()
public boolean isRecipientReassignmentProhibited()
public void setRecipientReassignmentProhibited(boolean value)
public RecipientsCollection getRecipients()
public boolean isReminderOverrideDefault()
public void setReminderOverrideDefault(boolean value)
public boolean isReminderPlaySound()
public void setReminderPlaySound(boolean value)
public boolean isReminderSet()
public void setReminderSet(boolean value)
public java.lang.String getReminderSoundFile()
public void setReminderSoundFile(java.lang.String value)
public java.util.Date getReminderTime()
public void setReminderTime(java.util.Date value)
public RemoteStatus getRemoteStatus()
public void setRemoteStatus(RemoteStatus value)
public java.lang.String getReplyRecipientNames()
public RecipientsCollection getReplyRecipients()
public OutlookFolder getSaveSentMessageFolder()
public void setSaveSentMessageFolder(OutlookFolder folder)
public java.lang.String getSenderName()
public boolean isSent()
public java.util.Date getSentOn()
public java.lang.String getSentOnBehalfOfName()
public void setSentOnBehalfOfName(java.lang.String value)
public boolean isSubmitted()
public java.lang.String getTo()
public void setTo(java.lang.String value)
public java.lang.String getVotingOptions()
public void setVotingOptions(java.lang.String value)
public java.lang.String getVotingResponse()
public void setVotingResponse(java.lang.String value)
public void clearConversationIndex()
public OutlookMail forward()
public OutlookMail reply()
public OutlookMail replyAll()
public void send()
public ItemPropertiesCollection getItemProperties()
public BodyFormat getBodyFormat()
public void setBodyFormat(BodyFormat value)
public DownloadState getDownloadState()
public void showCategoriesDialog()
public int getInternetCodepage()
public void setInternetCodepage(int value)
public RemoteStatus getMarkForDownload()
public void setMarkForDownload(RemoteStatus value)
public boolean isConflict()
public boolean isIPFax()
public void setIsIPFax(boolean value)
public FlagIcon getFlagIcon()
public void setFlagIcon(FlagIcon value)
public boolean isHasCoverSheet()
public void setHasCoverSheet(boolean value)
public boolean isAutoResolvedWinner()
public ConflictsCollection getConflicts()
public java.lang.String getSenderEmailAddress()
public java.lang.String getSenderEmailType()
public java.lang.String getFrom()
public OutlookMailRecipient getReplyToRecipient()
public java.lang.String getReplyToAddress()
public java.lang.String getSenderAddress()
With the Professional edition of Java Outlook Connector, this method also translate an Exchange type address (type "EX") to an SMTP e-mail address and returns the SMTP address (Outlook 2002 or later).
public AddressEntry getSender()
public boolean isEnableSharedAttachments()
public void setEnableSharedAttachments(boolean value)
public Permission getPermission()
public void setPermission(Permission value)
public PermissionService getPermissionService()
public void setPermissionService(PermissionService value)
public Account getSendUsingAccount()
public void setSendUsingAccount(Account account)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |