Jump to content

hotmail hates php


Schlo_50

Recommended Posts

Hey guys,

 

Im trying to send some mail using php mail(). My script is successful when sending to all addresses apart from hotmail ones.

 

<?php
if (isset ($_POST['submit']))
{

$site = "[email protected]";

$name = $_POST['name'];
$number = $_POST['number'];

$flag = "yay";
$error = "";

if ($number == ""){    
$msg = $msg."Please enter your nunmber.<br />";
$flag = "nay";  
}

if ($flag <> "yay"){
echo "$msg <br /> <input type='button' value='Retry' onClick='history.go(-1)'>";
}else{

$subject = "Enquiry";
$messagebody = "

Name: $name

Phone: $number
_______________________
";
$headers = "From: [email protected]\n"; 
$headers .= "MIME-Version: 1.0\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\n"; 
$headers .= "Reply-to: me <[email protected]>\n"; 

mail($site, $subject, $messagebody, $headers);

echo "Thank-you for your enquiry. We will get back to you soon!";
}
}
?>

 

Any ideas?

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/125608-hotmail-hates-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.