This article has been dead for over three months
You
# To get more information about this code and some extras please visit:
# http://www.daniweb.com/techtalkforums/showthread.php?p=101880#post101880
# Create an empty message variable.
$message="";
# The mail that we want to use to recevie the submitted information.
$to="info@mydomain.com";
# The E-Mail subject
$subject="This is a message from Page X";
# iterate the $_POST array
foreach ($_POST as $key=>$value) {
$message.=$key.": " . $value . "\n";
}
# Send message by e-mail.
$sm=mail($to, $subject, $message);