How to get image attached in the body of email in outlook?

I want to get the body of an email including the texts and photo/image attached in the body.

I'm able to get the body of the email using the mailObject.Body property, but it doesn't seem to be able to get the photo/image.

Any advise is greatly appreciated.
Dim inBox As Outlook.MAPIFolder
Dim Mailobject As Object

Set inBox = OlApp.GetNamespace("Mapi").GetDefaultFolder(olFolderInbox)

Set InboxItems = inBox.Items
For Each Mailobject In InboxItems
    If Mailobject.UnRead Then
    'I can get the body of the email by setting as below.
    Dim strBody as string
    strBody = Mailobject.Body

    '...but i can NOT get the photo attached in the body
End If

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shreedhar EtteCommented:
I think you need to use Mailobject.attachments.  See
tangteng78Author Commented:
I want to get the photo programatically using VBA.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

tangteng78, the link I sent you has code for VBA... do you need help interpreting it?
tangteng78Author Commented:
Is there a way to know at which point the photo is located in the email body when i save it?
text 1
photo 1
text 2
Rather than just saving photo 1 and photo 2, but i want to know that photo 1 is beween text 1 and text 2, while photo 2 is after text 2.
Check out the HTMLBody property.

Depending on what you're looking to do, you may have to do some parsing, but that should get you the raw information you're looking for.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tangteng78Author Commented:
No luck. It doesn't provide me how to get the exact location of the embedded photo/image in the body :((
Any ideas?
Can you post what the HTMLBody property returns?  I'm a VB.NET programmer and not really set up to do VBA for Outlook.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.