Hi,
I'm trying to set a simple send an email script as I found it on the internet.
Here is the code:
<html>
<head>
<title>PHP Mail Array Loop</title>
</head>
<body>
<?php
$to = "mymail@anydomain.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "anybody@somedomain.com";
$headers = "From: $from";
$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
if (mail($to,$subject,$message,$headers))
{
echo "Mail Sent.";
}
?>
</body>
</html>
Email addresses are substituted by real addresses.
Now, this is not working. I see the "Mail Sent." message but receive no mail.
My php skills really suck and I would appreciate if you could help in this one.