It's really quite simple. Here's a quick script that will dump all variables sent in a form to an email address:
$email = '[EMAIL PROTECTED]'; $subject = 'Form Posted on ' . date('r'); $from = '"Your Website" <[EMAIL PROTECTED]>'; $message = ''; // PHP up to 4.0.6 foreach ($HTTP_POST_VARS as $key => $value) { $message .= "$key: $value\n"; } // PHP 4.1.0+ foreach ($_REQUEST as $key => $value) { $message .= "$key: $value\n"; } mail($email, $subject, $message, "From: $from"); More information can be found at http://www.php.net/manual/en/function.mail.php Mike On Tue, 05 Mar 2002 12:48:29 -0800, Webmaster - Myonlinesite.Co.Uk And .Com wrote: > Hi > > can anyone quickly run through how to use php to send the contents of a > form via e-mail using sendmail? How do you begin? > > thanks > > [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php