Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Having Problems with SIMPLE mail() function
I am trying to learn php. My web host has version 4.1.2 running on their webserver.
I have a VERY simple script that I CANNOT get to work and the webhost support keeps telling me that all their other clients can get the mail function to work just fine and that the problem is in my code. I have simplified it down to just 3 lines of code, and STILL it will not work.
Am I missing something with the syntax? I have a php file that only has the following in it:
$mysubject = "TEST EMAIL FROM MSGBOARD";
$myemail = "email@example.com";
$mybody = "This is a test email to see if it works";
mail($myemail, $mysubject, $mybody);
Can someone take a peek and let me know if it's something obvious.
0 · ·