Sorting out the actual text of a MIME email messag - WeOnlyDo Discussion board

Sorting out the actual text of a MIME email messag (wodPop3)

by Stan, Tuesday, February 13, 2007, 12:32 (6494 days ago)

Has anyone posted a routine to get the meat of an email message based on encoding, parts, HTML etc?

I'm fussing with this checking content type and then sorting through parts and coding to try to get the real message. There must be a routine somewhere that someone has written (either a flowchart of VB code) that will let me avoid reinventing the wheel and doing endless testing to sort through all the possibilities.

This could apply to both the Pop3 and Mailbox modules

Re: Sorting out the actual text of a MIME email me

by woddrazen, Tuesday, February 13, 2007, 13:03 (6494 days ago) @ Stan

Hi Stan,


You should use PlainText Property which returns text/plain part of the message.

More help you can find here:
http://www.weonlydo.com/Pop3/Help/WODPOP3Lib~Pop3Msg~PlainText.html

Here is example how to use it:
---------------------------------------
Debug.Print Pop3.Messages(i).PlainText
---------------------------------------

HTMLText property returns text/html part of the message.

Here is example how to use it:
---------------------------------------
Debug.Print Pop3.Messages(i).HTMLText
---------------------------------------

More help you can find here:
http://www.weonlydo.com/Pop3/Help/WODPOP3Lib~Pop3Msg~HTMLText.html


Regards,
Drazen

Re: Sorting out the actual text of a MIME email me

by Stan, Tuesday, February 13, 2007, 13:36 (6493 days ago) @ woddrazen

Thanks Drazen,

Not only RTFM but RT WHOLE FM

That slipped right by me - and it works perfectly! It's exactly what I was looking for.

I have looked at a dozen Pop3 components and WOD is the best.

Re: Sorting out the actual text of a MIME email me

by woddrazen, Tuesday, February 13, 2007, 13:41 (6493 days ago) @ Stan

Stan,


Thank you for compliment.


Drazen