Jump to content

text from email to .txt - how?


Arel3

Recommended Posts

I'm an office manager building an internal system. I would like to automate as much of the job as possible.

Calls for our service go to call centers, which then come to us in an email. We take the body of the email and paste it in to a .txt document.

 

The format of the "calls" (emails) is this:

Relayed To:

 

    Reason: Reason for need for our service

 

MESSAGE ID: 3110001951

 

      From: CALLERS NAME 

  Company:

  Address: 1172 PINE LAKE DR 

  City/St: , GA 30017

    Phone: (770)982-9812 

Phone Book: *OTHER    If other list here:

  Message: CELL 404 964 2874 NEEDS CHIMNEY REPAIRS.

           

---------------------------------------------------------------------   

    Acct #: 6494

Caller ID: 7709829812     

      CSN: 2266481                   

 

  Taken By: LIS  06/07/2010 18:21:09

Relayed By: SYS!  06/07/2010 18:22:51

---------------------------------------------------------------------

,464943110001951FGJ6617570

 

 

 

 

 

Which then needs to be formatted like this:

Reason: Reason for needing our service

MESSAGE ID: 3110001951

      From: CALLERS NAME 

  Address: #### STREET 

  City/St: CITY, STATE 30017

    Phone: (###)###-#### 

Phone Book: *OTHER    If other list here:

  Message: CELL ### ### #### NEEDS REPAIRS.         

---------------------------------------------------------------------   

    Acct #: ####

Caller ID: ##########     

      CSN: #######                   

  Taken By: LISA  06/07/2010 18:21:09

=============================================

 

NEXT CALL WOULD BE PASTED HERE

 

 

 

 

Link to comment
Share on other sites

Very hopeful for a way to automate this so I can do more important things like...

scratch my butt

 

Yes.. I can see how that's really important.

 

Calls for our service go to call centers, which then come to us in an email.

 

Where are these stored? And can PHP access this directory? Or is the server running PHP connected to a network where the server that contains the e-mails is connected to?

Link to comment
Share on other sites

They are stored and originally received on public domains. They're on both our ISP's server, yahoo, and hotmail.

Our LAN system has email capabilities. I would like to have the messages from the public domains forwarded to the in house server and have this script, if the script itself is even possible, run locally.

 

I am not sure if our ISP's system will allow PHP to access the email directories, I will check in to it and find out.

I do know the local system will. 

 

 

Link to comment
Share on other sites

Thanks, thorpe!

I'll check that out and see if it does it.

 

Umm...before I get in to it and spend hours on it to find out the hard way; does this IMAP script work on windows based systems?

All of the instructions on the link you've provided, Thorpe, seem to be linux based.

 

NOT A PROBLEM!

If this script is what's going to do what I want I'll convert the system to linux.

I just want to know if it's windows compatible instead of wasting time working on it and find out in the end that it will only work on linux based systems.

Link to comment
Share on other sites

  • 2 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.