yazbek
asked on
Retrieve email addresses from an email in outlook
Hi all,
I am developing an outlook addin in vb.net using VSTO. I am trying to retrieve information from an email and I can do everything fine except retrieving email addresses. I can easily get the senders email by using the .senderEmailAddress but this does not exsist for to,cc,bcc. When I use to,cc, or bcc only the persons name comes up and not the email address. Would anyone have a way of getting around this? Below is a smaill snippet of code:
Thanks In Advance
I am developing an outlook addin in vb.net using VSTO. I am trying to retrieve information from an email and I can do everything fine except retrieving email addresses. I can easily get the senders email by using the .senderEmailAddress but this does not exsist for to,cc,bcc. When I use to,cc, or bcc only the persons name comes up and not the email address. Would anyone have a way of getting around this? Below is a smaill snippet of code:
Thanks In Advance
Dim objApp As Outlook.Application
Dim msg As Outlook.MailItem
objApp = CreateObject("Outlook.Application")
msg = objApp.ActiveInspector.CurrentItem
Me.txtSubject.Text = msg.Subject
Me.txtNotes.Text = msg.Body
Me.txtFromEmail.Text = msg.SenderEmailAddress
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.