Hello,
Does anyone see anything wrong this this code:
$subject="New Class Enrollment";
$message="You have been enrolled in $ClassName.";
$sitename1 = "Bibleway Community of Faith -- School of Christian Education";
$Email = $Email;
$femail = "johnie@godsbible.org";
mail($Email,"$subject","$message","From: $sitename1 <$femail>");
I have been trying to get this to work for hours now, and I just can't figure out what's wrong. All the variables print out on the next page when I use echo to make sure they are correct. There is also 2 lines of mysql query under that and they work just fine. The same mail() function above is copied and pasted from a page that it does work from, in the same directory.
$Email is a session variable.
I don't get any mailer demon messages, and can't find any errors on the server.
Any ideas would be helpfull,
Thanks,
Johnie Karr