I am having a problem sending automated email to a hotmail address. The mail will only reach the address if I include Cc in the header. I really don't understand why this should be so as it works fine from my local Windows XP PC so why shouldn't it work on my Linux - Apache Server?
Here is part of my script:
if (mysql_affected_rows() == 1) {
$email_header = "MIME-Version: 1.0\r\n";
$email_header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$email_header .= "From: Company <info@company.co.uk>\r\n";
$email_header .= "Cc: [email]info@company.co.uk[/email]\r\n";
$body = 'Dear '.$_POST['first_name'].', <br><br>
This is an automated response from <a href="http://www.company.co.uk">Company</a>.<br><br>
Thankyou for registering your details with us. You can now login to your account using the link below.<br><br>
<p /><a href="http://www.compaae.co.uk/login.php?u='.$u.'&p='.$p.'">[url]http://www.sfjkgksdful.co.uk/login.php?u=[/url]'.$u.'&p='.$p.'</a>
<p />For your information, your login details are as follows:
<ul>
<li>Username = '.$u.'</li>
<li>Password = '.$p.'</li>
</ul>
<p />You may change your password to something more familiar once you have logged in.
<p />You can now reap the benefits of our instant quote system:
<p />generate quotes, generate purchase orders, upload artwork files, view your jobs progress, list your quotes and much more.
<br><br><br>Regards,<br><br>';
$subject = 'Your new registration details';
mail ($e, $subject, $body, $email_header);