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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retrieving SMTP address from Outlook 2000 via VBA



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old April 14th 08, 01:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Retrieving SMTP address from Outlook 2000 via VBA

To get the SMTP address instead of an Exchange distinguished name address
you must use something like CDO 1.21 or Redemption, the properties you need
aren't exposed to the Outlook object model in Outlook 2000.

There are lots of examples of using CDO or Redemption to get the SMTP
address, but CDO will always fire the security prompts unless the
administrative security form is used. That must be set up by an Exchange
admin.

Here's one Redemption example:
http://www.outlookcode.com/codedetail.aspx?id=1455. If you go to
www.outlookcode.com and search for "SMTP address" you'll find a lot of
examples aside from the one I pointed to.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
...
Hi Guys,

Is there a way of getting the SMTP address from Outlook 2000?

For example, I have a name John Doe and it will resolve that name for
me (I tried ResolveAll but a "a program is trying to access email
address" security prompt is popping up, which is unacceptable) and
give me the SMTP address and not the EX address.

I tried googling for Redemption and CDO but I'm getting nowhere. I
keep getting the "Get the address of Sender" examples and I'm having
trouble adopting the code to fetch the SMTP address of a name only.

Note that there is no existing message, just a name.

Any help would be much appreciated.

Thanks!

Boy


 




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
Can't get SMTP address of contact that shares email address of an Exchange user Jeff Outlook and VBA 14 January 15th 09 12:50 AM
SMTP addresses not appearing in the Outlook 2k3 address book [email protected] Outlook - Using Contacts 0 November 23rd 07 06:28 AM
Retrieving/Exporting cached email address in outlook express Tom Machado Outlook - General Queries 1 December 5th 06 09:49 PM
ÎÞ·¨ÕÒµ½Ö÷»ú¡°smtp¡±¡£Çë¼ì²éÊäÈëµÄ·þÎñÆ÷ÃûÊÇ·ñÕýÈ·¡£ ÕÊ»§: 'pop3', ·þÎñÆ÷: 'smtp', ЭÒé: SMTP, ¶Ë¿Ú: 25, °²È«(SSL): ·ñ, Ì×½Ó×Ö´íÎó: 11001, ´íÎóºÅ: 0x800CCC0D Outlook Express 0 June 17th 06 09:44 AM
Suppress Outlook 2000 from automatically retrieving Exchange 2003 Email Ed_No_Spam_Please_Weber@Weber_Spam_Not_Enterprises.Org Outlook - General Queries 2 March 5th 06 04:01 AM


All times are GMT +1. The time now is 03:45 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.