rpcarnell
08-21-2007, 03:25 PM
I decided to use PHPMailer because someone told me using it will stop services like hotmail from treating every email coming from my website as spam.
The problem is that whenever my website sends an email, I get this message:
Language string failed to load: connect_host
In order to use PHPMailer, you need to alter the php.ini file. I haven't done that, and it still works, if I include the files in the php files that will use the phpmailer classes.
My script is finding the PHPMailer classes, and it worked when I used them with my Localhost Linux account, so what's the problem now? I didn't alter the php.ini file there either.
require("phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "76.12.38.242"; // SMTP server
$mail->From = "personal@pilando.com";
$mail->AddAddress($_POST['email']);
$mail->Subject = "Confirme su membresía en Pilando.com";
$mail->Body = "Gracias por registrarse en nuestra página. Vaya a este link
para confirmar su registro:
http://www.pilando.com/confirm.php?hash=$hash&email=$encoded_email
Gracias por su interés.";
$mail->WordWrap = 50;
____________________________________________
http://www.carbotek.org
The problem is that whenever my website sends an email, I get this message:
Language string failed to load: connect_host
In order to use PHPMailer, you need to alter the php.ini file. I haven't done that, and it still works, if I include the files in the php files that will use the phpmailer classes.
My script is finding the PHPMailer classes, and it worked when I used them with my Localhost Linux account, so what's the problem now? I didn't alter the php.ini file there either.
require("phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "76.12.38.242"; // SMTP server
$mail->From = "personal@pilando.com";
$mail->AddAddress($_POST['email']);
$mail->Subject = "Confirme su membresía en Pilando.com";
$mail->Body = "Gracias por registrarse en nuestra página. Vaya a este link
para confirmar su registro:
http://www.pilando.com/confirm.php?hash=$hash&email=$encoded_email
Gracias por su interés.";
$mail->WordWrap = 50;
____________________________________________
http://www.carbotek.org