Retrieve email messages stored in my Outlook?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
kevinmortimer
Forum Newbie
Posts: 2
Joined: Wed Jul 04, 2007 11:10 am

Retrieve email messages stored in my Outlook?

Post by kevinmortimer »

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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

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

Post by alex.barylski »

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.
kevinmortimer
Forum Newbie
Posts: 2
Joined: Wed Jul 04, 2007 11:10 am

What about GREP

Post by kevinmortimer »

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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: What about GREP

Post by Chris Corbyn »

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?
You can use grep from the command line via exec(), or you can use the PCRE functions to do the equivalent manually (preg_..() functions).
Post Reply