This is my first time setting up a mail server on IIS so dont have any idea where to start really.
I am using the PHPMailer script which I downloaded from http://phpmailer.sourceforge.net/.
This is the code I am using to send the mail.
My script, when executed, echo's 'failed', for a failed result.PHP Code:require 'phpmailer/class.phpmailer.php';
$mail = new phpmailer();
$mail->From = 'you@yourdomain.com';
$mail->FromName = Your Name;
$mail->Subject = 'Test Message';
$mail->Body = 'This is a test message';
$mail->AddAddress('you@yourdomain.com', 'Your Name');
if (!$mail->Send())
{
echo ('failed');
}
else
{
echo ('sent');
}
Where do I go from here? What do I check/fix?
HELP!




Bookmarks