How to extract email body message?

Hi Everyone!

I am having problem trying to extract the email body from the Email Listener. Basically, what happen is i can extract the email body from the Email Listener if there are no attachment. However, if there is an attachment, i can only get the attachment, but no email body. Here is what my flow service look like:

getTransportInfo
createMimeData
getNumParts
Repeat (step)
getBodyPartContent
streamToBytes
bytesToString
appendToStringList
addInts

Try this:
Just make sure the ‘Invoke service for each part of multipart message’ property in the email port is set to ‘No’ and you will get the body content as String in the ‘data’ variable under ‘getTransportInfo/email’.

Hi Sam,

How to do create the mime message.
Do u map the email/content from the input variable pipeline to Input of the create mime object.
I am havign issues with that service.