Interested in sending advanced email using PHP's mail() function, or even by piping output directly to sendmail? If so, make sure you take a look at Steve's comprehensive tutorial on sending email with PHP.
Getting Intimate With PHP's Mail() Function (Page 1 of 5 )
PHP provides a handy and convenient way to send email. As you probably already know, this is through the mail() function. This function is a great way to send mail using a simple and standard interface that hides the complexity and quirks of various system programs that are responsible for sending mail. (Sendmail and Qmail are two examples of popular mail programs. You would have to talk directly to the web servers mail program if the mail() function did not exist). This tutorial will introduce you to the basics of sending mail from PHP scripts. We will also develop a simple HTML form to help us work with variables.