i followed the instructions on the test alerts and i received the error message. i also downloaded the test scripts and they failed as well. when i searched my webhost knowledge base i found that this is required for php mail to work. however the problem is i have no idea were to put this code? any help would be great.

Our SMTP servers require that you pass SMTP authentication before they will relay email from a php application. You can use the code below to define SMTP authentication.

<html>
<head><title>Test email via php</title></head>
<body>
<?
require_once "Mail.php"; // DO NOT CHANGE THIS LINE
$from = "Sender <postmaster@yourdomain.com>"; //IMPORTANT: This must be same as your smtp authentication address.
$to = "Recipient <user@yourdomain.com>";
$subject = "This is a test email sent via php";
$body = "This is a test email";
$host = "mail.yourdomain.com";
$username = "postmaster@yourdomain.com"; //IMPORtANT: This email MUST be same as your FROM address.
$password = "email_password";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
print $mail;
?>
</body>
</html>