G
Guest
I am using the piece of code below attached to a button so that when it is pressed, it displays the email address of who sent the email on the screen
Set objIEApp = CreateObject("InternetExplorer.Application"
MsgBox " The email eddress of the sender is " & myinspector.CurrentItem.Reply.T
This code worked fine until i came across an email in which the from field was of this format "Joe Bloggs [joe.bloggs.co.uk]
Now my message box just displays the name and not the email address
What field to i need to attach to my code so that if i encounter in email with both a name and an email, it will display both in my message box
Thanks
Set objIEApp = CreateObject("InternetExplorer.Application"
MsgBox " The email eddress of the sender is " & myinspector.CurrentItem.Reply.T
This code worked fine until i came across an email in which the from field was of this format "Joe Bloggs [joe.bloggs.co.uk]
Now my message box just displays the name and not the email address
What field to i need to attach to my code so that if i encounter in email with both a name and an email, it will display both in my message box
Thanks