Arel3 Posted June 8, 2010 Share Posted June 8, 2010 Is there a way to get text from an email and display it in a notepad document? If there is a way it can be done...how? Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/ Share on other sites More sharing options...
ignace Posted June 8, 2010 Share Posted June 8, 2010 Your gonna need to give some more information otherwise it's just: CTRL + A, CTRL + C, CTRL + V, Windows key + R > notepad Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069428 Share on other sites More sharing options...
Arel3 Posted June 8, 2010 Author Share Posted June 8, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069448 Share on other sites More sharing options...
Arel3 Posted June 8, 2010 Author Share Posted June 8, 2010 When we have a page full of calls it gets printed and filed. Very hopeful for a way to automate this so I can do more important things like... scratch my butt Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069451 Share on other sites More sharing options...
ignace Posted June 8, 2010 Share Posted June 8, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069498 Share on other sites More sharing options...
Arel3 Posted June 9, 2010 Author Share Posted June 9, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069721 Share on other sites More sharing options...
trq Posted June 9, 2010 Share Posted June 9, 2010 Looks like you want to take a look at imap. Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1069722 Share on other sites More sharing options...
Arel3 Posted June 11, 2010 Author Share Posted June 11, 2010 Thanks, thorpe! I'll check that out and see if it does it. Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1070843 Share on other sites More sharing options...
Arel3 Posted June 11, 2010 Author Share Posted June 11, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1070852 Share on other sites More sharing options...
captbeagle Posted September 10, 2010 Share Posted September 10, 2010 As a general rule in my book, if you're wanting to use PHP, you're going to need to use a Linux system (though that new MS server supposedly supports PHP). If you're using a Windows server, you're probably going to want to look at .NET tools instead. Quote Link to comment https://forums.phpfreaks.com/topic/204185-text-from-email-to-txt-how/#findComment-1109735 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.