Log in

View Full Version : libgmailer not sending email



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.

tech_support
01-18-2008, 08:18 AM
Just try echoing
$gmailer->send("me@site.com", "Hello World", "Cool!!") and see what happens.

Jas
01-19-2008, 04:22 AM
I get this:

Nothing. :(
Does that mean that there is an error hmailserver? (Is that even needed for this?)

Jas
01-24-2008, 04:49 AM
Anyone have an idea?

tech_support
01-24-2008, 06:54 AM
Do you have cURL installed?

Jas
01-24-2008, 06:46 PM
I'm not sure what that is, but it looks like it's turned on in the PHP settings.

Jas
01-29-2008, 10:40 PM
Does anyone have any ideas? I really need this to work :(

Jas
02-06-2008, 07:02 PM
. . . . Is there any good alternative then? Just give me something to repsond so that when an application is accepted the user knows.