I tried with the one header line and it did not work. I just followed the exact syntax shown in the "newbie bookmarked threads" and it supposedly worked. It had me add to other lines of header "stuff".
But as mentioned, I'm doing this on my local machine, running Appache. How will it send? Does appache have an email server, of sorts, that sends these emails? I only ask because I have not received anything.
Here's my code:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= 'From: ME <me@mydomain.com>';
$mail = @mail($to, $subject, $body, $headers);
if (!$mail) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
So how will this message send, and again, will it supposedly work from one's local machine if they are running appache?
Thanks.