If it helps you I searched the forum (which I should have done in the first place) and found the answer was to install phpmailer in the includes/mail/ and create mail.php -
<?
require_once("class.phpmailer.php");
$mail = new phpmailer();
// $mail->Mailer = "mail"; // send via php
$mail->IsSMTP(); // send via SMTP
$mail->Mailer = "smtp";
$mail->Host = "myisp.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentification
$mail->Username = "myusername"; // SMTP username
$mail->Password = "mypassword"; // SMTP password
$mail->From = "noreply@kmiles.co.uk";
$mail->FromName = $fromname;
$mail->AddAddress("$to");
$mail->AddReplyTo("$fromname", "$fromaddress");
// $mail->WordWrap = 50; // set word wrap
// $mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
// $mail->AddAttachment("/tmp/image.jpg", "new.jpg");
// $mail->IsHTML(false); // send as HTML
$mail->Subject = utf8_decode($subject);
$mail->Body = utf8_decode($message);
// $mail->AltBody = "This is the text-only body";
$IsSent = 1;
if(!$mail->Send())
{
echo "email_has_not_been_sent ";
echo "Mailer Error: " . $mail->ErrorInfo;
$IsSent = 0;
exit;
}
?>
My system is now sending it via my isp which is what I wanted.
By the way I am running a linux system with apache2.
Regards, Kenneth.