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

Get SMTP address of sender in outlook 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 3rd 09, 08:22 AM posted to microsoft.public.outlook.program_addins
Nagaraj
external usenet poster
 
Posts: 22
Default Get SMTP address of sender in outlook 2003

Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri
Ads
  #2  
Old July 3rd 09, 11:59 AM posted to microsoft.public.outlook.program_addins
Ashutosh Jogdande
external usenet poster
 
Posts: 10
Default Get SMTP address of sender in outlook 2003

Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which you
are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj" wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri



  #3  
Old July 3rd 09, 02:04 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get SMTP address of sender in outlook 2003

That is not necessarily true, none of the entries from my GAL that also have
contacts show the SMTP address in the display name. To actually get the SMTP
address see http://www.outlookcode.com/d/code/ge...htm#redemption
and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.


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


"Ashutosh Jogdande" wrote in message
...
Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which
you are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj" wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri




  #4  
Old July 4th 09, 11:04 AM posted to microsoft.public.outlook.program_addins
Nagaraj
external usenet poster
 
Posts: 22
Default Get SMTP address of sender in outlook 2003

Thanks for your information. The problem is solved by the following line

sender = Application.Session.CurrentUser.Address


--
Nagaraj Tadipatri


"Ken Slovak - [MVP - Outlook]" wrote:

That is not necessarily true, none of the entries from my GAL that also have
contacts show the SMTP address in the display name. To actually get the SMTP
address see http://www.outlookcode.com/d/code/ge...htm#redemption
and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.


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


"Ashutosh Jogdande" wrote in message
...
Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which
you are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj" wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri





  #5  
Old July 5th 09, 07:34 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Get SMTP address of sender in outlook 2003

That will give you the current user's address, but it has nothing to do with
the sender address of any particular message in your inbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nagaraj" wrote in message
...
Thanks for your information. The problem is solved by the following line

sender = Application.Session.CurrentUser.Address


--
Nagaraj Tadipatri


"Ken Slovak - [MVP - Outlook]" wrote:

That is not necessarily true, none of the entries from my GAL that also
have
contacts show the SMTP address in the display name. To actually get the
SMTP
address see
http://www.outlookcode.com/d/code/ge...htm#redemption
and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.


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


"Ashutosh Jogdande" wrote in message
...
Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which
you are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook
will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj" wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri






  #6  
Old July 6th 09, 02:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get SMTP address of sender in outlook 2003

And it also won't necessarily give you an SMTP address. If CurrentUser is an
Exchange DN that's what you'll get, not an SMTP address.

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


"Dmitry Streblechenko" wrote in message
...
That will give you the current user's address, but it has nothing to do
with the sender address of any particular message in your inbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nagaraj" wrote in message
...
Thanks for your information. The problem is solved by the following line

sender = Application.Session.CurrentUser.Address


--
Nagaraj Tadipatri


  #7  
Old July 14th 10, 03:51 AM
tannd tannd is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2010
Posts: 1
Default

Hi Dmitry Streblechenko,

How can i get the sender address of message without current user's adresss ?


Quote:
Originally Posted by Dmitry Streblechenko View Post
That will give you the current user's address, but it has nothing to do with
the sender address of any particular message in your inbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Nagaraj" wrote in message
...
Thanks for your information. The problem is solved by the following line

sender = Application.Session.CurrentUser.Address


--
Nagaraj Tadipatri


"Ken Slovak - [MVP - Outlook]" wrote:

That is not necessarily true, none of the entries from my GAL that also
have
contacts show the SMTP address in the display name. To actually get the
SMTP
address see
http://www.outlookcode.com/d/code/ge...htm#redemption
and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.


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


"Ashutosh Jogdande" wrote in message
...
Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which
you are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook
will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj"
wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri



 




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
Reading SMTP address from Exchange Sender mail address VebKol Outlook and VBA 4 March 6th 09 04:08 PM
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
Retrieve recipients smtp address using Redemption + Outlook 2003 CoolSanil Outlook - Using Forms 2 December 18th 08 05:26 PM
How to get sender address in PST file without Outlook installed. KAKA Add-ins for Outlook 11 November 20th 07 06:21 AM
Add all sender from my emails to an address book in outlook [email protected] Outlook - Using Contacts 3 December 21st 06 01:33 PM


All times are GMT +1. The time now is 08:41 AM.


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