Redemption.SafeMailItem issue with Sent MailItem

S

Srinu

Hi,

I am using the Event 'ItemSend' to get the sent MailItem. All i need
is the From from this MailItem. I am getting 'Nothing' when i tried to
access the properties of 'SenderName' and 'SenderEmailAddress' of
SafeMailITem. I even tried Save() method. But no Luck. ( I am using VB.NET
and my program needs to work outlook 200/2002/2003 with/without Exchange
Server.

My code snippet

Public Function MsgSent(ByVal mitem As Outlook.MailItem)

Dim oMailItem As New Redemption.SafeMailItem
mitem.Save()
oMailItem.Item = mitem

MsgBox oMailItem.SenderName
MsgBox oMailItem.SenderEmailAddress

End Function

I even trid the following code for getting the current user but no luck. It
is returning 'Unknown'


Dim cu As New SafeCurrentUser

MsgBox cu.Name

cu.Cleanup()
cu = Nothing


Is there any way i can get the Sender Info from the MailItem without
Security Message ?


Thanks,
Srinu
 
S

Sue Mosher [MVP-Outlook]

At that point, the message has not yet been fully sent, so the SenderName
and other "from" properties will always be blank.
 
S

Srinu P

At what point it will be filled ? Is there any otherway i can get that
From (like current user ). Example code is greatly appreciated.
 
S

Sue Mosher [MVP-Outlook]

Fill what? Unless you quote the ealier message, it's hard to know what
you're asking about.
 
S

Srinu P

Sorry about that Sue. Here is the full conversation of the discussion.

All i need is to get the sender information from the MailItem ( Sent
Item ) which is got from the 'ItemSend' event of Outlook.

Thanks for the quick response.

-------------------------------------
Re: Redemption.SafeMailItem issue with Sent MailItem
From: Sue Mosher [MVP-Outlook]

Fill what? Unless you quote the ealier message, it's hard to know what
you're asking about.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Srinu P said:
At what point it will be filled ? Is there any otherway i can get that
From (like current user ). Example code is greatly appreciated.

--------------------

At that point, the message has not yet been fully sent, so the
SenderName
and other "from" properties will always be blank.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

The sender information will be available after the message has been sent and
moved to the Sent Items folder.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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