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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Outlook emails in Access VBA 2

Status
Not open for further replies.

PizMac

Programmer
Nov 28, 2001
90
GB
I am writing code behind a form to read emails from a specified outlook folder, download attachments and do various other processing. I am unable to find the code to get the sender's email address. I can get the recipient (the TO name) with .to (although it requres permission to be granted). The .subject and .attachments all work fine but I can't find the correct property for the senders email address. Can anyone help please?
 
How are ya PizMac . . .

Curious . . . Post what you have . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Try .SenderName

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
Thanks to ClulessChris - that gave me the name to play with, although now I get the security confirmation prompt and may need to find a work around for that. Thanks also to Remou- I may use this link later.
 
Sendername will not give you the senderemailaddress, which is available, but blocked by Outlook security. Redemption (see link) will allow you to access this useful information, without warnings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top