Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to Extract email address from message

Status
Not open for further replies.

icarus5000

Technical User
May 15, 2003
16
US
Hi,

I'm trying extract the email address from a message without using CDO (this is a client side macro that strips the message down and inserts it's key elements into a db table). The closest thing I've fouund is Outlook.mailItem.SenderName which only returns the name and not the address within square brackets "[me@email.com]"

Any ideas on this would be appreciated.

Thanks,
-I

 
Hiya,

Try creating a reply to the message and use the resulting object's Address property to get the email address

CAUTION: this won't give you the desired result if the Sender/ReplyTo fields are different!


HTH a little anyway ;-)

Cheers
Nikki
[bat] Look, mommy, I'm flying!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top