Hi All
I am very new to PHP and very much looking forward to learning it. I have a question and would like to find out if this is possible and if you could point me in the right direction.
I would like to retrieve email messages from a folder in my Outlook. The result being some form of structured document thst I can use eg CSV or comma seperated or tab seperated fil etc
Retrieve email messages stored in my Outlook?
Moderator: General Moderators
-
kevinmortimer
- Forum Newbie
- Posts: 2
- Joined: Wed Jul 04, 2007 11:10 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I'm not sure how plausible it would be to get the emails from outlook itself. It's possible, that's for sure, but feasible, not so sure. Reading emails from the server however is definitely possible if you can connect with IMAP or POP. I'm not really sure of the interface provided by exchange servers if that's what you use.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Connecting to your Outlook?
I would have to agree...you'd be better off reading emails from a remote server using IMAP instead of trying to connect to Outlook. You can of course utilize the Outlook COM API (Google for a while and you'll find the requires resources) to do things like query your calendars, check stored emails, etc.
If your PHP is hosted on a remote Linux server and your Outlook is your desktop, your in for a challenge. Perhaps possible, I don't think Outlook is implemented as a server per se, but it's possible some of it's interfaces support DCOM which may allow components to communicate over the wrise using RPC. Using PHP under Linux you will likely have a hard time working with COM interfaces as I am not sure (quick search revealed nothing) there is an open source port of the Windows model.
I would have to agree...you'd be better off reading emails from a remote server using IMAP instead of trying to connect to Outlook. You can of course utilize the Outlook COM API (Google for a while and you'll find the requires resources) to do things like query your calendars, check stored emails, etc.
If your PHP is hosted on a remote Linux server and your Outlook is your desktop, your in for a challenge. Perhaps possible, I don't think Outlook is implemented as a server per se, but it's possible some of it's interfaces support DCOM which may allow components to communicate over the wrise using RPC. Using PHP under Linux you will likely have a hard time working with COM interfaces as I am not sure (quick search revealed nothing) there is an open source port of the Windows model.
-
kevinmortimer
- Forum Newbie
- Posts: 2
- Joined: Wed Jul 04, 2007 11:10 am
What about GREP
Ok thanks for that.
Looks like I might need to tackle this from another angle.......Is it possible to use GREP in PHP to interogate system files like outlook?
Looks like I might need to tackle this from another angle.......Is it possible to use GREP in PHP to interogate system files like outlook?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: What about GREP
You can use grep from the command line via exec(), or you can use the PCRE functions to do the equivalent manually (preg_..() functions).kevinmortimer wrote:Ok thanks for that.
Looks like I might need to tackle this from another angle.......Is it possible to use GREP in PHP to interogate system files like outlook?