![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I have an open Inspector window and a new mail being written. Once the Send is hit I can subscribe to the App.ItemSend event and examine the message. What I need to be able to do is tell if any of the recipients on the To/CC/ fields are Exchange users or not. Example: User Bob has an exchange account, and is using Outlook. He sends a single email to Alice and Frank. Alice is on the same exchange server as Bob, while Franks in on something else, say gmail. I want to be able to distinguish that this message in Outlook has at least one non-Exchange user as the destination. Is this possible? I'm guessing some sort of CDO call for the Recipients, plus maybe the Address Type from EMAPI property, but you guys are smarter than me and may already know the best way. :-) Thanks! |
Ads |
#2
|
|||
|
|||
![]()
Iterate the Recipients collection and check each Recipient.AddressEntry.Type. If it's "EX," it's an Exchange recipient.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... Hi, I have an open Inspector window and a new mail being written. Once the Send is hit I can subscribe to the App.ItemSend event and examine the message. What I need to be able to do is tell if any of the recipients on the To/CC/ fields are Exchange users or not. Example: User Bob has an exchange account, and is using Outlook. He sends a single email to Alice and Frank. Alice is on the same exchange server as Bob, while Franks in on something else, say gmail. I want to be able to distinguish that this message in Outlook has at least one non-Exchange user as the destination. Is this possible? I'm guessing some sort of CDO call for the Recipients, plus maybe the Address Type from EMAPI property, but you guys are smarter than me and may already know the best way. :-) Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook crash for some users after move mailboxes to new server on Exchange 2003 SP2 | Diamondas | Outlook - General Queries | 9 | March 21st 06 10:59 PM |
Recipients Objects | David Cebrian | Add-ins for Outlook | 1 | March 16th 06 10:05 PM |
Outlook/Exchange 5.5 - Some users get blank emails others are fine | [email protected] | Outlook - General Queries | 0 | March 7th 06 01:49 PM |
Opinion buttons for none Exchange Server account users? | AndrewRossington | Outlook - General Queries | 3 | February 28th 06 01:20 PM |
how to block recipients | Roberto | Outlook - Using Contacts | 1 | February 4th 06 09:20 PM |