Sending HTML emails with PHP
Sending HTML emails using PHP is very simple. To send emails we use php mail(); function. When it comes to sending an HTML email we need to modify mail headers content-type to text/html.
This tutorial assumes you are creating a contact form for your website.
First create a form that your website visitors will use to send you email. Try out tutorial "Create Simple Cross-Browser Textarea" to create a form with a simple HTML editor and customize it to use the script below.
sendemail.php
|
<?php //now we need to set mail headers |
Emir Plicanic owns and operates a web design company (