Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP API for Hotmail? [closed]

Tags:

php

api

hotmail

Is there a way to retrieve EMAIL (not contacts) using a Hotmail PHP Api? Is there EVEN one?

like image 336
test Avatar asked Feb 10 '11 03:02

test


3 Answers

Good question. Hotmail supports POP3 so have a look into the PECL POP3 library. It's not likely going to be easy but I don't see any reason why you shouldn't be able to get something working.

UPDATE:

I've never actually used the PECL POP3 Library before, I just knew it existed. I've had a better look at the files and it's pretty easy to follow. The README is only 37 lines as is very clear about how to install it. It also comes with 2 examples, one shows how to use the library procedurally, the other how to use it as an Object for OOP designed systems.

You will have to be able to edit your php.ini to add the extension but I doubt you're going to get around that for any solution to this problem.

like image 116
Endophage Avatar answered Nov 15 '22 11:11

Endophage


Use the PHP POP3 and Mimetype classes: http://www.phpclasses.org/package/2-PHP-Access-to-e-mail-mailboxes-using-the-POP3-protocol.html and http://www.phpclasses.org/package/3169-PHP-Decode-MIME-e-mail-messages.html

If you change the information in this sample file you should be able to read the messages: http://www.phpclasses.org/browse/file/21753.html

Configuration information for Hotmail: http://www.ghacks.net/2009/03/14/hotmail-pop3-configuration/

Ask if you need more clarification.

like image 39
Alec Gorge Avatar answered Nov 15 '22 11:11

Alec Gorge


You can try using IMAP,POP3,NNTP of PHP It provides functions that you want. It provides installation guidelines. Also details for run time configuration.

Hope this helps.

like image 42
Harry Joy Avatar answered Nov 15 '22 13:11

Harry Joy