• reddy reddy 75
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi Guys,

 

I need to parse the Email body in Apex class and get  CaseId , OrderNumber, Address ,Email, and  ComplaintID etc

 

from below text. (below text includes both text and HTML content)

 

Hello XXX,

 

Thank you for contacting xxxxx.

 

test email from ttttt.com

 

Please let us know if we can be of further assistance.

 

Sincerely,

xxxxxx

yyyyy

 

Case ID: {5555555}

ComplaintID: {888888888}

OrderNo: {133333}

 

some text here also hgkkkkkkkkkkkkkkkkkkkkkfjhkhghllglglklkl;;oh;oh;oioii;'isdrtgrrdgdsgdgdg

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyydfhdhreuhdfhryurtyhrtyuryutrytryutryutrttrutr

 

 

Original Message Follows: ------------------------

 

Subject:

xxxxxxx

Customer:

yyyy

E-mail Address:

xxxxx@ccc.com

Phone:

3333333

Address:

22 xxxxx,hhhhh,dd

Other:

xxxxx

Question/Comments:

ddddddd

 

 

please any one suggest me how to proceed with this , If any one having sample code for how to parse the email  body "PlainText:" and "HTMl" content, I will be thank full to them.

 

Thank you

Aruna

 

 

  • October 19, 2011
  • Like
  • 0