I decided to take the pear route, however it still does exactly the same thing;
require_once('Mail.php'); // These two files are part of Pear,
require_once('Mail/mime.php'); // and are required for the Mail_Mime class
$from = "MY EMAIL ADDRESS";
$subject = "MY SUBJECT";
$headers = array('From' => $from,
'Subject' => $subject);
// Plaintext version of the email to be sent
$textMessage = "This is a test text email";
// Here we create the HTML version of the email to be send, using
$htmlMessage = "<b>This is a test html email</b>";
$mime = new Mail_Mime();
// create a new instance of the Mail_Mime class
$mime->setTxtBody($textMessage);
// set plaintext message
$mime->setHtmlBody($htmlMessage);
// set HTML message
$body = $mime->get();
// Build the email message
$hdrs = $mime->headers($headers);
// Build headers
$params['host'] = 'smtp.MY_ISP.co.uk';
$params['port'] = 25;
$mail = &Mail::factory('smtp', $params);
// Creates an instance of the mail backend
$mail->send($to, $hdrs, $body);
// Send email
It seems to send emails to myself (ISP address), and most others fine, however one of my own domain names, and hotmail do not receive the emails. If these 2 dont, then I am sure there will be others.
Any other ideas??
Thanks!!