How does the mail function work(PHP)
Iv done the same thing as this example.
But i cant seem to get it working, running the script threw the shell only gives me errors on every line, and running it threw the website doesnt give any results either :( Is there any other easy way of creating a function where people can click on a button to email me instant. <?php mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3"); ?> EDIT: ps. should i use <form action="mail.php" method="post" or "get"> ??? |
What errors do you get?
You can use post or get, as the names suggest though one is for sending data and one is for requesting data. |
All times are GMT -5. The time now is 02:37 AM. |