04-28-2005, 04:19 PM
| THREAD STARTER
#1 (permalink)
|
| Account Closed Join Date: Feb 2005 Location: England
Posts: 1,169
| PHP Formail this is the simplest i seen, submit your forms to "thankyou.php" or whatever, make it a thankyou message for submitting a form, and use this code:
submit a standard html file to this, its easy PHP Code: <SCRIPT LANGUAGE="php">
$email = $HTTP_POST_VARS[email];
$mailto = "you@domainl.com";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
????: NamePros.com http://www.namepros.com/code/86035-php-formail.html $mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$mailbody .= "$key : $val\n"; }
mail($mailto, $mailsubj, $mailbody, $mailhead);
</SCRIPT>
|
| |