These are my settings using PHPMAILER ..
I get the follwoing message on my browser :
Message was not sent.Mailer error: SMTP Error: The following recipients failed: halm1985@hotmail.com
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "halal-loan.com"; // SMTP server
$mail->From = "info@halal-loan.com";
$mail->AddAddress("halm1985@hotmail.com");
$mail->Subject = "First PHPMailer Message";
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent.';
}
?>
To add, when i change the name of the host i get another message
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\mail\class.smtp.php on line 105
Warning: fsockopen() [function.fsockopen]: unable to connect to halal-lsoan.com:25 (Unknown error) in C:\wamp\www\mail\class.smtp.php on line 105
Message was not sent.Mailer error: SMTP Error: Could not connect to SMTP host.
So, i think the host name is correct ..
Plz help