I have scenario where I have kind of table in email body and I have to extract table from body.
Issue is the table will be just like a text , Below is the attached sample.
Hello,
Please find below the information about your purchase orders.
first read the mail and then print it so that can identify what are information it is giving after reading and we can perform string manipulation and all to get data in required format.
If the item1 will not have any item with space then you can extract the data using string.split method.
Read the mailmessage as a string and split that with newline, then if the line first word is PONumber then the next line is your data. So you need to split the next line as line.split(" "C), this will give you a string array with the details of 5 items in that.