SafeItem.TO property is empty when the recipient is in address boo

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi , thanks for the help in advance.
When I send to people who are stored in any address book, the SafeItem.TO property is blank.
Here is a sample pseudo code:

Public Sub ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim SafeItem As Redemption.SafeMailItem
set SafeItem = createobject("Redemption.SafeMailItem")
SafeItem.Item = Item
MsgBox(SafeItem.To) <-------- this shows blank, no sec prompt
MsgBox(SafeItem.Item.To) <------ this shows the recipient (but triggers the sec prompt)
End Sub
 
Redemption (or any Extended MAPI code for that matter) won't see changes
made through the Outlook object model until you commit the changes - call
Item.Save before accessing SafeMailItem.To

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I've just spotted this thread after initiating "Redemption - problem with Save

In a nutshell, I'm having problems with the recommended CurrentItem.Save in
that it leaves an unnecessary copy in Drafts. Is there a way to remove this
if I decide not to manually save my message?
 
Back
Top