[SOLVED] PHPMailer returning "Mailer Error: Language st
Posted: Fri Mar 09, 2007 8:01 am
The full error is:
"Mailer Error: Language string failed to load: provide_address".
Althought I've printed out the to, from, reply, subject & body and they're all being passed to PHPMailer correctly. Google isn't much help in this situation either.
I'm using the following code to try to send:
Regards,
"Mailer Error: Language string failed to load: provide_address".
Althought I've printed out the to, from, reply, subject & body and they're all being passed to PHPMailer correctly. Google isn't much help in this situation either.
I'm using the following code to try to send:
Code: Select all
$to = $_POST["to"];
$subject = $_POST["subject"];
$message = $_POST["message"];
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "x";
$mail->From = $cppEmail;
$mail->FromName = $cppfName." ".$cppsName;
$mail->AddAddress = $to;
$mail->AddReplyTo = $cppEmail;
$mail->Subject = $subject;
$mail->Body = $message;
$mail->AltBody = "Test";
$mail->WordWrap = 50;
$mail->Send();
echo "<br><b>To:</b> {$mail->AddAddress}<br><b>From:</b>{$mail->From}<br><b>From Name: </b>{$mail->FromName}<br>";
if(!$mail->Send()) {
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
}