473,386 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Reading outloook mails in PHP

Is it possible to read Outlook mails in PHP?? I would like to create a
php program that reads mails from a particular person which are
downloaded in MS Outlook.

Ethan

Feb 5 '06 #1
4 2003
i would like to do something similar actually. i havent ever actually
got around to playing with it. i would appreciate it if you would post
some code if you manage it.

as a help to you, outlook saves all of its data in a file called
outlook.pst (please note outlook express uses a different file) its in

C:\Documents and Settings\Administrator\Local Settings\Application
Data\Microsoft\outlook i thin or something like that. the directory
local settings is hidden if you didnt know.

im not sure about updated emails and not sure if this file is updated
when outlook is open or not but its a start.

you could create a php file that takes this outlook.pst file in and
makes some sense of it. de-microsofting the code will be a pain but im
sure theres a way. look at a php function called file() to grab the lot
into an array. or this way may be better as im not sure how arrays cope
with huge amounts of data like microsofts datafiles usually are. try
fopen();

hope this helps

Sean Barton

Feb 5 '06 #2
et******@gmail.com wrote:
Is it possible to read Outlook mails in PHP?? I would like to create a
php program that reads mails from a particular person which are
downloaded in MS Outlook.


The PST file format has been reverse-engineered, documented and there is
code written in PERL to handle it. But its kind of a fscked up way of
solving the problem of reading Email on a platform with crappy integration.

Use IMAP.

C.
Feb 5 '06 #3
I saw an MSDN article in
http://search.msdn.microsoft.com/sea...View=msdn&st=b
which stated that pst came in different formats and folder size limits.
http://episteme.arstechnica.com/grou...5003017631/p/2
"Sean Barton" <ba*********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
i would like to do something similar actually. i havent ever actually
got around to playing with it. i would appreciate it if you would post
some code if you manage it.

as a help to you, outlook saves all of its data in a file called
outlook.pst (please note outlook express uses a different file) its in

C:\Documents and Settings\Administrator\Local Settings\Application
Data\Microsoft\outlook i thin or something like that. the directory
local settings is hidden if you didnt know.

im not sure about updated emails and not sure if this file is updated
when outlook is open or not but its a start.

you could create a php file that takes this outlook.pst file in and
makes some sense of it. de-microsofting the code will be a pain but im
sure theres a way. look at a php function called file() to grab the lot
into an array. or this way may be better as im not sure how arrays cope
with huge amounts of data like microsofts datafiles usually are. try
fopen();

hope this helps

Sean Barton

Feb 12 '06 #4
> Is it possible to read Outlook mails in PHP?? I would like to create a
php program that reads mails from a particular person which are
downloaded in MS Outlook.


Although you don't say what platform you want to do this on, presumably
it is a Windows OS and you want to run it on the client that has MS
Outlook installed.

Your best bet is to use VBScript directly to access MS Outlook methods
and properties. See MSDN for details. You could drive a VBScript from
PHP but I don't see what value it would have to add this extra layer.
Alternatively you could use PHP's COM extensions to do the same job -
see previous comp.lang.php threads on that topic.

---
Steve

Feb 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: WebRod | last post by:
Hi everybody, I just would like to download the new mails I received on my POP3 server (and keep a copy on the server) I use PHP 4.3 and IMAP functions (they are compatible with both POP3 and...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
2
by: jamal | last post by:
hi guys I am looking for a way to read & download my e-mails from my pop3 account from another server by using ASP(vb) If you know anything about this subject please feel free to let me know. ...
1
by: Richard | last post by:
Hi Friends, How can I read and delete outlook e-mails from vb.net. I'll appreciate your help. RC
2
by: GSK | last post by:
Hi, Can any once suggest me how i can read inbox mails from C#. Does .NET support any component or do i need to use the Mapi interop. Thanks... GSK.
2
by: beeswax | last post by:
Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't...
1
by: ckok | last post by:
Hi, I am coding an application that gets all the mails(exchange server) in a folder and then enumerates all the attachments. But some mails have slashes("\") in the subject and display name. I...
0
by: teddy06 | last post by:
I have written code for read mails from exchange server. I have used webdav in my code. Its was working fine once upon a time. Currently configuration settings of client has been changed . so i...
2
Maidenz08
by: Maidenz08 | last post by:
Can you please shed some light on how to capture incoming and outgoing mails from third party mail providers like yahoomail and gmail on a particular machine. I am able to read mails sent or recieved...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.