Redemption SafeCurrentUser returns "Unknown?"

B

Bingo

I was using CurrentUser property off Outlook Object
Namespace. Since it triggers the security popup, I'm
testing this with Redemption. The following is what I
have. I tried both oRdpUser.Address and oRdpUser.Name
but both returned "Unknown." I'm running Outlook on Win
XP. If this does not work, how do I get the current user
name? Thanks.

Set oRdpUser = CreateObject("Redemption.SafeCurrentUser")
sUserName = oRdpUser.Address
oRdpUser.cleanUp
 
B

Bingo

I'm using Outlook 2000 SP3. Also what about other
earlier versions of Outlook? Do I expect the same
problem or MS has fixes as well? Thanks.
 
D

Dmitry Streblechenko \(MVP\)

Outlook 2000 should be Ok unless you are using the IMO mode (see
Help|About). IMO breaks Extended MAPI; C/W mode is OK.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
B

Bingo

I'm using CW mode. Do I need to do anything else before
calling Set oRdpUser = CreateObject
("Redemption.SafeCurrentUser")?
 
B

Bingo

I copied the following from your web site:

"Access properties not exposed by the Outlook Object
Model (internet message headers, sender e-mail address
and hundreds more properties)"

How do i access the sender email address? I thought
Outlook Object does have SenderName property off the
MailItem. Thanks.
 
D

Dmitry Streblechenko \(MVP\)

SenderName is not the same as SenderEmailAddress (which was introduced in
Outlook 2003).
You can either use SafeMailItem.SenderEmailAddress or
SafeMailItem.Fields(PR_SENDER_EMAIL_ADDRESS).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
B

Bingo

I tried both SafeMailItem.SenderEmailAddress and
SafeCurrentUser in Redemption, but both returned empty
string.

What I'm doing is in the ItemSend event to try to capture
the sender's name. When I create a new email and click
on Send, the SenderName is always empty in both Outlook
object and Redemption. Any idea why? Thanks.
 
D

Dmitry Streblechenko \(MVP\)

ItemSend is called before the message is actually handed to the transport
provider, but the sender properties are set by the transport provider. Try
to use the MAPIFolder.Items.ItemAdd event instead, where MAPIFolder points
to the "Deleted Items" folder.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
D

Dmitry Streblechenko \(MVP\)

If you have OutlookSpy installed, try to click the IMAPISession button, then
QueryIdentity. Do you see the valid data?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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