cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Mail content in Sender Mail Channel

prem_a
Participant
0 Kudos

Hi Experts,

I am doing a PoC using sender mail channel to read an incoming HTML email & take few values from the mail body to send out as proxy message. Settings in my Sender channel are Transport Protocol: IMAP4 & Message Protocol: XIPayload. I have tried the "Use Mail Package" parameter checked & unchecked. If "Use Mail Package" is checked the XML payload I am getting contains the mail body under <Content> tag with all HTML tags.

Without "Use Mail Package" option checked the content is coming as plain text as below.

I have tried adding modules MessageTransformBean & ASMA setting "IMail.AssumeXMLContent=true". But Not able to make the content into mapping ready XML. Is it possible to convert the HTML email body into mapping ready XML or I should use Java or XSLT mapping to work on the HTML mail body?

Thanks in advance for any help.

Regards

Prem A.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I think u should use XSLT (preferred) or java to read this HTML content and then feed the same to ur main mapping.

Thanks

Amit Srivastava

prem_a
Participant
0 Kudos

Hi Amit,

Thanks Amit. I will try XSLT or Java mapping for this scenario. Appreciate your help.

Regards

Prem A.

Answers (0)