Hi,
I have a php mail program,
<HTML>
<BODY>
<?php
$to = "me@myhost.com" ;
$from = "me@myhost.com" ;
$subject = "Hi This is a test mail";
$body = "Testing Email program and works";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:$from \n";
mail($to, $subject, $body, $headers);
if (mail($to, $subject, $body, $headers))
{
echo("<p>Messag e successfully sent!to $to</p>");
} else {
echo("<p>Messag e delivery failed...Can't send email to $to</p>");
}
?>
</BODY>
</HTML>
The problem is i could not have any errors but i could not able to receive mail in my mailbox. I am working on PHP,MySQL,Apach e, and Linux.
So have /etc/exim/exim.conf ---- (exim 3.36)
/etc/php4/apache/php.ini
how to configure?
please help me.
Thanks
Glady.
I have a php mail program,
<HTML>
<BODY>
<?php
$to = "me@myhost.com" ;
$from = "me@myhost.com" ;
$subject = "Hi This is a test mail";
$body = "Testing Email program and works";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:$from \n";
mail($to, $subject, $body, $headers);
if (mail($to, $subject, $body, $headers))
{
echo("<p>Messag e successfully sent!to $to</p>");
} else {
echo("<p>Messag e delivery failed...Can't send email to $to</p>");
}
?>
</BODY>
</HTML>
The problem is i could not have any errors but i could not able to receive mail in my mailbox. I am working on PHP,MySQL,Apach e, and Linux.
So have /etc/exim/exim.conf ---- (exim 3.36)
/etc/php4/apache/php.ini
how to configure?
please help me.
Thanks
Glady.
Comment