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

retreiving senders email

Status
Not open for further replies.

poeijer

Programmer
May 29, 2002
69
NL
Hi all,

how can i retreive the senders email?

ooulook = createobject("application.outlook")
oNameSpace = oOutlook.getNameSpace("MAPI")
oInbox = oNameSpace.GetDefaultFolder(6)

oinbox.items[nr].xxxx

what name to fill in the xxxx to get the email? i cant find any. i know off .to .sender .sendername(this doesnt seem to work) and couple others

is there any way to retrieve the emailaddress
i am thinking of saving every mail in the contact list and
then use the contact list to retrieve the senders email address.

thanks
 
I found the solution.. here it is:

replymail=omail.reply
sendersaddy=Replymail.recipients(1).address

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top