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

I have to find the sender's email address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 28th 10, 12:06 PM posted to microsoft.public.outlook.program_vba
win
external usenet poster
 
Posts: 1
Default I have to find the sender's email address

I have to find the sender's email address.

But oMsg.SenderName -- Sender Name returns the name.

How can I find the email address?

Thanks.
  #2  
Old January 28th 10, 03:32 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default I have to find the sender's email address

Outlook version?

If your version doesn't have the MailItem.SenderEmailAddress property it
must be an old version of Outlook. In that case there's nothing specific in
the Outlook object model for that.

You can create a dummy reply and get the address that way. Call the Reply()
method on the original item and then use the returned handle to the reply
item to get the Recipients collection and get the address from the
Recipient.Address property.

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


"win" wrote in message
...
I have to find the sender's email address.

But oMsg.SenderName -- Sender Name returns the name.

How can I find the email address?

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
"Sender's email address was rejected" Mike Aldrich Outlook Express 4 December 30th 07 11:14 PM
Error Number 0X800CCC78 Sender's email address rejected BKBKBK Outlook Express 6 November 23rd 07 08:54 AM
How to find Sender's ISP dc Outlook Express 5 April 25th 07 11:32 PM
To rename outlook mail attachment to sender's email address sriramus Outlook and VBA 1 March 7th 06 05:41 PM
To rename outlook mail attachment to sender's email address sriramus Outlook and VBA 0 March 7th 06 03:43 PM


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