para gmail visita este enlace se basa en la libreria gmailer
http://torrentialwebdev.com/blog/arc...tact-list.html libgmailer.php -> http://gmail-lite.sourceforge.net/
Código PHP:
<?php
require_once("libgmailer.php");
$gmail_acc = "username";
$gmail_pwd = "acc_pass";
$my_timezone = 0;
$gmailer = new GMailer();
if ($gmailer->created) {
$gmailer->setLoginInfo($gmail_acc, $gmail_pwd, $my_timezone);
//uncomment if you need it
//$gmailer->setProxy("proxy.company.com");
if ($gmailer->connect()) {
// GMailer connected to Gmail successfully.
// Do something with it.
//Get the contacts
// For "Inbox"
$gmailer->fetchBox(GM_CONTACT, "all", "");
$snapshot = $gmailer->getSnapshot(GM_CONTACT);
//Outputs an array of the contacts
var_dump($snapshot->contacts);
//Outputs the number of contacts
var_dump($snapshot->contacts_total);
} else {
die("Fail to connect because: ".$gmailer->lastActionStatus());
}
} else {
die("Failed to create GMailer because: ".$gmailer->lastActionStatus());
}
?>
Para hotmail bajate este archivo
http://www.jmstreet.info/tools/msn_contact_grab.zip visita este enlace ;) para ver lo de hotmail y gmail mas a fondo
http://torrentialwebdev.com/blog/arc...-tutorial.html