i tried the libgmailer-1.37, 1.36, 0.9
versions but it still show s the snapshot_error libg110
my code is below
<?php
require_once("libgmailer.php");
$gmailer = new GMailer();
if ($gmailer->created) {
$gmailer->setLoginInfo("username", "pwd", 0);
if ($gmailer->connect()) {
echo "<br>Connection successfull";
if(!$gmailer->fetchBox(GM_STANDARD,"inbox",0)) {
echo "<br>Inbox fetching failed";
} else {
echo "<br>Inbox fetch ok";
$snapshot = $gmailer->getSnapshot(GM_STANDARD);
var_dump($snapshot);
}
// GMailer connected to Gmail successfully.
// Do something with it.
} else {
die("<br>Fail to connect because: ".$gmailer->lastActionStatus());
}
} else {
die("<br>Failed to create GMailer because: ".$gmailer->lastActionStatus());
}
?>
why it is happening
