Hey guys, have written a script that goes to an exchange mailbox and searches for unread emails and takes the headers and body data I require and add to an array.

What I want to do is check if the body of the email contains images/text or only text, is this possible?

Further looking tells me it might be a multi-part message, what I need it to do is tell me if it is multi-part and if so and possible just extract the text from the body and ignore the rest.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.