• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1045
  • Last Modified:

How to get address of a sender in SMTP Format from outlook mailitem.

I am accessing mail items in outlook using Outlook 10.0 Type Library.
I want to get the address of sender in SMTP format (as abc@xyz.com).
Right now, the mailItem.SenderName gives me the name of the sender as (Firstname, lastname).


thanks in advance,
krovi
0
sarmakdvsr
Asked:
sarmakdvsr
  • 2
1 Solution
 
petoskey-001Commented:
use the SenderEmailAddress property instead of the SenderName property.
0
 
petoskey-001Commented:
If your using an older version of Outlook, you can check this link...

    http://www.outlookcode.com/d/code/getsenderaddy.htm

for code samples on how to pull the address when it isn't available directly from the object model.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now