I am very new to PHP, so pardon my ignorance.
I've been trying to create a mail form in PHP for a site I'm working on but I've gotten stuck. I've been using the following format from the books I've been learning out of:
$to = "[email protected]";
$subject = "You got Mail!";
$message = "This is the message";
$header = "From: [email protected]";
mail($to,$subject,$message,$header);
I've been substituting my own values for the above information and having zero luck. Even typing the examples given in the books exactly as they appear gives me no results. I've been to about a dozen websites looking for information on this and they all pretty much provide the same template.
Just to be clear, the form shows up just fine, but when submitted with my own email address in the proper location gives me nothing in my inbox.
I'm not sure if this is the problem, but I'm running these pages on my personal laptop. It is connected to the internet and serving pages with the latest versions of Apache and PHP5. Is this the problem? Doesn't seem to make sense to me, I don't understand how my laptop connected to the internet running Linux, Apache, and PHP5 is any different from a server connected to the internet running the same applications, but then again I am very new to this.
Thanks and merry xmas.
I've been trying to create a mail form in PHP for a site I'm working on but I've gotten stuck. I've been using the following format from the books I've been learning out of:
$to = "[email protected]";
$subject = "You got Mail!";
$message = "This is the message";
$header = "From: [email protected]";
mail($to,$subject,$message,$header);
I've been substituting my own values for the above information and having zero luck. Even typing the examples given in the books exactly as they appear gives me no results. I've been to about a dozen websites looking for information on this and they all pretty much provide the same template.
Just to be clear, the form shows up just fine, but when submitted with my own email address in the proper location gives me nothing in my inbox.
I'm not sure if this is the problem, but I'm running these pages on my personal laptop. It is connected to the internet and serving pages with the latest versions of Apache and PHP5. Is this the problem? Doesn't seem to make sense to me, I don't understand how my laptop connected to the internet running Linux, Apache, and PHP5 is any different from a server connected to the internet running the same applications, but then again I am very new to this.
Thanks and merry xmas.