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

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
 
D

Dmitry Streblechenko \(MVP\)

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
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top