Is it possible to recieve an email (emails are recieved on the same server) and parse the body of the email to collect information? For example: My vendor sends me an email with a link to an XML file that lets me know if my order has been recieved. For example: (XML Example)
Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <Batch>
- <Order>
<po>PO1000</po>
<Status>OK</Status>
</Order>
- <BatchStatus>
<Status>OK</Status>
<Date>08/09/2005</Date>
<Time>19:50:06</Time>
</BatchStatus>
<Count>1</Count>
<Number>1000</Number>
</Batch>
I need to write a script that will check the email files (automated script that is) and read incoming emails that look like the following:
Message Body:
and automatically parse that XML for the data I need...
So basically is it possible to write something that will read my email, get that link, grab the xml file information and then process it as needed?
if so can someone point me in the right direction?
Thanks!
Anjari