A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Easiest way to see if the recipients are Exchange users?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 18th 06, 06:48 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default Easiest way to see if the recipients are Exchange users?

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  
Old March 18th 06, 07:12 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Easiest way to see if the recipients are Exchange users?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.