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

This is the code I am using to send the mail.

PHP Code:
require 'phpmailer/class.phpmailer.php';

$mail = new phpmailer();
$mail->From '';
$mail->FromName Your Name;
$mail->Subject 'Test Message';
$mail->Body 'This is a test message';    
$mail->AddAddress('''Your Name');
if (!
    echo (
    echo (

My script, when executed, echo's 'failed', for a failed result.

Where do I go from here? What do I check/fix?