Scripts: Php :: Php mail functions >> Library Article #11
Developer's Section
PHP Basic Send Mail Function & Form By: Karthik
|
||||||||
Learn a simple way to send an email using PHP and a simple html form.
This is a very simple tutorial, yet works like a charm and does all the things it needs to do. First of all, here's the code:
Save it as contact.php Lets break it down. The variables gather the information from the forms and make it a cleaner code. The if($submit) tells the mail(); function that it can send the email. It helps to keep it from sending annonymous emails to your email address. You have to change the name@host.com to your email address to be able to get the email from the user. The rest is fine do not change, unless you need to. Now for the forms!
This is really simple, I should not have to explain it. Leave the name fields alone, unless you need to. You can change the size too. Script Info: User Submitted Script. Author: Karthik. Home Town: Trichy, India. |
||||||||
|
||||||||
See other Scripts in Php mail functions |
Submit Your Scripts: |
System Message:
|
If you would like to have your PHP scripts published in this section please fill out the form below: |