Solved

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

Posted on 2004-04-05
4
1,035 Views
Last Modified: 2013-12-14
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
Comment
Question by:sarmakdvsr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
petoskey-001 earned 250 total points
ID: 10759280
use the SenderEmailAddress property instead of the SenderName property.
0
 
LVL 7

Expert Comment

by:petoskey-001
ID: 10759302
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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question