• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1056
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

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