|
SafeMailItem
object exposes
Outlook.MailItem
object properties and methods blocked by the security patch as well as events
not exposed by the Outlook Object Model.
The example below outputs the sender
name of each message in the default Inbox folder:
set App = CreateObject("Outlook.Application")
set Folder = Application.Session.GetDefaultFolder(olFolderJournal)
set SafeMailItem = CreateObject("Redemption.SafeMailItem")
for each item in Folder.Items
SafeMailItem.Item = item
Debug.Print SafeMailItem.SenderName
next |
|
The following properties and
method are inherited from the
SafeItem object:
Attachments, Auth,
Key, Body, Fields, Item, Recipients, RTFBody, Sender, Version
CopyTo,
GetIDsFromNames, Import, SaveAs, Send
|
|
Events |
|
ForwardAsAttachment (Item, Cancel)
|
Occurs when the user selects the "Forward as Attachment"
action for an item.
Item - The new item being sent in response to the
original message. Note that the item will be Outlook's MailItem, not
Redemption.SafeMailItem.
Cancel - False when
the event occurs. If the event procedure sets this argument to
True , the reply all operation is not completed and the new
item is not displayed.
|
|
NewMeeting(Item, Cancel)
|
Occurs when the user selects the "Reply with Meeting"
action for an item.
Item - The new item being sent in response to the
original message. Note that the item will be Outlook's MailItem, not
Redemption.SafeMailItem.
Cancel - False when
the event occurs. If the event procedure sets this argument to
True , the reply all operation is not completed and the new
item is not displayed.
|
|
|
Properties |
|
BCC |
Returns a
String representing the display list of blind
carbon copy (BCC) names for a message. This property contains the
display names only. The Recipients collection should be used to
modify the BCC recipients.
Note:
Since Outlook only blocks reading of this property, Redemption only
implements the read accessor. To set this property, use the original
Outlook Item assigned to the Item property or use late
binding.
|
|
CC |
Returns a
String representing the display list of carbon copy
(CC) names for a message. This property contains the display names only.
The Recipients collection should be used to modify the CC
recipients.
Note: Since Outlook only
blocks reading of this property, Redemption only implements the read accessor. To set this property, use the original Outlook Item assigned
to the Item property or use late binding.
|
|
HTMLBody |
Returns or sets a String representing the HTML body
of the specified item. The HTMLBody property should
be an HTML syntax string. Read-only.
|
|
IsDirty |
Returns TRUE if the Outlook object assigned to the Item property has
unsaved changes.
|
|
ReceivedByName |
Returns a String representing the display name of
the true recipient for the mail message. This property corresponds to
the MAPI property PR_RECEIVED_BY_NAME. Read-write.
|
|
ReceivedOnBehalfOfName |
Returns a String representing the display name of
the user delegated to represent the recipient for the mail message. This
property corresponds to the MAPI property PR_RCVD_REPRESENTING_NAME.
Read-write.
|
|
ReplyRecipientNames |
Returns a
semicolon-delimited String list of reply recipients
for the mail message. This property only contains the display names for
the reply recipients. The reply recipients list should be set by using
the ReplyRecipients collection. Read-only.
|
|
ReplyRecipients |
Returns or sets an Recipients
collection that represents all the reply recipient objects for the mail
message.
|
|
SenderEmailAddress |
Returns oa String that represents the e-mail
address of the sender of the e-mail message, meeting item, or post. This
property corresponds to the MAPI property
PR_SENDER_EMAIL_ADDRESS. Read-write.
Note: Since Outlook only
blocks reading of this property, Redemption only implements the read accessor. To set this property, use the original Outlook Item assigned
to the Item property or use late binding.
|
|
SenderName |
Returns a String indicating the display name of the
sender for the e-mail message, meeting item, or post. This property
corresponds to the MAPI property PR_SENDER_NAME. Read-write
|
|
To |
Returns a
String representing the display list of the To
names for a message. This property contains the display names only. The
Recipients collection should be used to modify the To recipients.
Note: Since Outlook only
blocks reading of this property, Redemption only implements the read accessor. To set this property, use the original Outlook Item assigned
to the Item property or use late binding.
|
|
SentOnBehalfOfName |
Returns
String indicating the display name for the intended sender of the
mail message. This property corresponds to the MAPI property
PR_SENT_REPRESENTING_NAME. Read/write.
Note: Since Outlook only
blocks reading of this property, Redemption only implements the read accessor. To set this property, use the original Outlook Item assigned
to the Item property or use late binding.
|
|
|
|