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
Can I use a variable from a .php file to give a value to an HTML FormMail form field thus: ? Thank youHow do I remove escape characters from data?
DYnamic Dropbox when I select a value it has to add a textbox to a specific position in the form how do I do it?? If I could change the dropbox in a textbox and make it add Textboxes depending on the number typed it would be even better but dont think th
I currently use this form on my site: Name
How do I make a website field mandatory?
