I am trying to get PHP Mailer up and running.
I am using a Microsoft Exchange Server
I am using the following code.
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.servername.domain_name.com 25"; // SMTP server
$mail->From = "admin@domain.com";
$mail->AddAddress("pperson@domain.com");
$mail->Subject = "first mailing";
$mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
?>
I am getting the following error:
Message was not sentMailer Error: Language string failed to load: connect_host
Please note that I am having no problems using the PHP mail() function.
I am using a Microsoft Exchange Server
I am using the following code.
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.servername.domain_name.com 25"; // SMTP server
$mail->From = "admin@domain.com";
$mail->AddAddress("pperson@domain.com");
$mail->Subject = "first mailing";
$mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
?>
I am getting the following error:
Message was not sentMailer Error: Language string failed to load: connect_host
Please note that I am having no problems using the PHP mail() function.