Long story short:
Ive built a site for a mate who uses Portland hosting. Portland are having problems with sendmail on their servers which they seem unable to resolve, so they have told me that I need to use SMTP mail and sent me this script.
Code:
<?
include("Mail.php");
$recipients = "mail_to@domain.mail";
$headers["From"] = "mail_from@domain.mail";
$headers["To"] = "mail_to@domain.mail";
$headers["Subject"] = "Test message";
$body = "TEST MESSAGE!!!";
$params["host"] = "10.14.0.16";
$params["port"] = "25";
$params["auth"] = false;
$params["username"] = "user";
$params["password"] = "password";
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory("smtp", $params);
$mail_object->send($recipients, $headers, $body);
?>
The script calls for mail.php which I dont have.
Is this a common php page that is located on the server or something I need to create?