This is my code
<body>
<?php
// # Is the OS Windows or Mac or Linux
if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {
$eol="\r\n";
} elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) {
$eol="\r";
} else {
$eol="\n";
}
# Common Headers
$headers .= 'From: Webdev01 <webdev01@yahoogroups.com>'.$eol;
$headers .= 'Reply-To: Webdev01 <webdev01@yahoogroups.com>'.$eol;
$headers .= 'Return-Path: Webdev01 <webdev01@yahoogroups.com>'.$eol;
$headers .= "Message-ID: <TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters
# Boundry for marking the split & Multitype Headers
$headers .= 'MIME-Version: 1.0'.$eol;
//$headers .= "Content-type: text/plain; charset=iso-8859-1".$eol;
$headers .= "Content-type: text/html; charset=iso-8859-1".$eol;
$to = "myemail@someone.com";
$subject = "Test Mail";
$msg = "Hi, <br> Testing";
if(mail($to, $subject, $msg, $headers))
echo "mail sent....";
else
echo "error...";
?>
</body>
Problem :
when i was send this kind of code it will show me that mail is send successfully .
but in actually mail is not sende.
And my php.ini
and please tell me about the php.ini
file
thanks in advance