Results 1 to 1 of 1

Thread: Advanced Help Needed: Parsing Email

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Advanced Help Needed: Parsing Email

    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:
    Code:
     
    Results are available at the following URL: http://www.vendorwebsite.com/wbxml/1...52394_0001.xml
    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
    Last edited by Anjari; Aug 9th, 2005 at 07:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width