Returning sender of recipients collection

J

Jason Smyth

Quick question, working with an Addin that controls Appointments added
to a user Calendar folder. I am trying to retrieve the the owner (not
the creator) from a recipients collection held in the Appointment
item. I cannot dependent on Recipient type as the the organizer is
not always the owner (Delegated items).

Now I thought I had got a handle on this by returning the first
recipient of the collection. Can someone just confirm for me that the
recipient collection contains the sender(from) and the default to, cc
and bcc?

I have noticed when processing some existing items, that the first
recipient in the collection is not always the sender? Why would that
be? Is it possible to hide the sender when sending an item?

Note: Working with Outlook 2000 SR-1
 
J

Jason Smyth

Sue, thanks for the quick reply.

I believed the Recipient collection contained the 'from' name (the
meeting organizer), To, CC and BCC names. I am sure this is true, as
when I loop through a collection the first recipient appears to be the
organizer. Is that not the case?
 
S

Sue Mosher [MVP-Outlook]

No. The From name is different. I think what you're seeing is the case where
the creator of the meeting creates an item in their own Calendar folder and
thus become one of the required attendees. Not all meeting requests use that
scenario.

(For anyone else who's interesting, Jason and I have a long discussion on
this going at
http://www.outlookcode.com/threads.aspx?forumid=4&messageid=3903. I think
the PR_SENT_REPRESENTING_NAME property is what he's looking for.)

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



Jason Smyth said:
Sue, thanks for the quick reply.

I believed the Recipient collection contained the 'from' name (the
meeting organizer), To, CC and BCC names. I am sure this is true, as
when I loop through a collection the first recipient appears to be the
organizer. Is that not the case?

"Sue Mosher [MVP-Outlook]" <[email protected]> wrote in message
No, the Recipients collection does not contain the sender.
 

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