Jas
01-16-2008, 12:35 AM
So, I downloaded libgmailer, and I have it set up as below:
<?php
require_once("./libgmailer.php");
$gmailer = new GMailer();
if ($gmailer->created) {
$gmailer->setLoginInfo('my', 'pass', 2.5);
if ($gmailer->connect()) {
if($gmailer->send("me@site.com", "Hello World", "Cool!!")){
echo 'The message was sent!!!';
}else{
echo 'Message not sent';
}
} else {
die("Fail to connect because: ".$gmailer->lastActionStatus());
}
} else {
die("Failed to create GMailer because: ".$gmailer->lastActionStatus());
}
?>
It prints
Message not sent
What might be the problem? It is connecting, but not sending.
<?php
require_once("./libgmailer.php");
$gmailer = new GMailer();
if ($gmailer->created) {
$gmailer->setLoginInfo('my', 'pass', 2.5);
if ($gmailer->connect()) {
if($gmailer->send("me@site.com", "Hello World", "Cool!!")){
echo 'The message was sent!!!';
}else{
echo 'Message not sent';
}
} else {
die("Fail to connect because: ".$gmailer->lastActionStatus());
}
} else {
die("Failed to create GMailer because: ".$gmailer->lastActionStatus());
}
?>
It prints
Message not sent
What might be the problem? It is connecting, but not sending.