How do I email the contents of a form to me?
The mail function can take several parameters, however for a simple email all you need are the first three - who it is to, the title of the email (subject) and the contents of the message (body).
Thus if your web server is configured to allow use of the mail function on PHP, this will send an email:
<?php
mail("me@myaddress.com","Hello me","That was easy wasn't it?");
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More forms PHP Questions
How do I remove HTML tags from a string?I am having a form. Here, i am submitting the form using java script as its necessary. If the form method is get, i am able to get in redirection page and can get the hidden values in the form. But if the form method is post, i am not able to get those hi
How do I check for an empty field in a form?
how to avoid the refresh or goback to submit the post values in database
How do I escape data that is going into a database?
