You want your site's visitors to be able to contact you (to offer you work, marriage, congratulations on your genius etc) but, as soon as you put your email address on the site, you're inundated with spam and Nigerian gentlemen offering you $5 million. This tutorial shows you how to make a simple email form in PHP so that a form can be mailed to you when the user hits the submit button. Gareth then shows how to make a simple HTML mail, as well as a useful tip on how to make helpful hints appear in the status bar while the user fills in the form.
This is suitable for beginners to advanced users of PHP.
Overview
Table of Content:
- What PHP requires to send Email
- SMTP settings in the PHP.ini file
- The PHP mail() command
- Email Headers
- CC - Carbon Copy
- BCC - Blind Carbon Copy
- From - Email From Address
- X-MSMail-Priority - Message Priority (Applies to Outlook Express Only)
- X-Priority - Message Priority
- Easily Creating Email Headers
- Combining Email Headers
- Creating a Mail Form
- HTML Emails
- Summary
Gareth has a range of skills, covering many computer and internet related subjects. He is proficient in many different languages including ASP and PHP, and is responsible for the setup and maintenance of both Windows and Linux servers on a daily basis.
In his daily web development work he uses the complete range of Macromedia software, including Dreamweaver MX, Flash MX, Fireworks MX and Director to build a number of websites and applications. Gareth has a close relationship with Macromedia, and as a member of Team Macromedia Dreamweaver, he has worked closely in the development of Dreamweaver, and was a beta tester for Dreamweaver MX.
On a daily basis he provides support for users in the Macromedia forums, answering questions and providing help on a range of different web related subjects. He has also written a number of free and commercial extensions for Dreamweaver MX, to further extend its capabilities using its native JavaScript API’s or C++.
As a web host, Gareth has worked with a range of different servers and operating systems, with the Linux OS as his personal favourite. Most of his development work is done using a combination of Linux, Apache and MySQL and he has written extensively about setting up this type of system, and also running Apache and MySQL under Windows.
See All Postings From Gareth Downes-Powell >>