R
Ranjan as usual
Dear folks,
I am creating a program in VB .net to access the email address of the sender from the microsoft outlook folder. I can access the subject line when I write the following piece of code, However I don't know how to access the email address property of the person sending the mail? I tried "sendername" property , but didnt' work! Any suggestions would be appreciated. My code is below , for retreiving the subject.
cheers,
Ranjan
Dim Objapp = CreateObject("outlook.application")
Dim objns = Objapp.GetNamespace("MAPI")
'Dim objfolder = objns.PickFolder
Dim strName As String
Dim objselection = Objapp.activeExplorer.selection
Dim objItem As Object
For Each objItem In objselection
TextBox1.Text = objItem.subject
loop
I am creating a program in VB .net to access the email address of the sender from the microsoft outlook folder. I can access the subject line when I write the following piece of code, However I don't know how to access the email address property of the person sending the mail? I tried "sendername" property , but didnt' work! Any suggestions would be appreciated. My code is below , for retreiving the subject.
cheers,
Ranjan
Dim Objapp = CreateObject("outlook.application")
Dim objns = Objapp.GetNamespace("MAPI")
'Dim objfolder = objns.PickFolder
Dim strName As String
Dim objselection = Objapp.activeExplorer.selection
Dim objItem As Object
For Each objItem In objselection
TextBox1.Text = objItem.subject
loop