06-27-2006, 04:20 AM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 03-09-06
Posts: 1,250
Latest Blog: None
|
If you are using PHP, this is pretty easy.
PHP Code:
// code to deal with form $name = $_POST['name']; $email = $_POST['email'];
// send email to webmaster with form details // email headers $headers .= "From: From Name<fromaddress@domain.com>\n"; $headers .= "X-Sender: <fromaddress@domain.com>\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "Return-Path: <fromaddress@domain.com>\n"; // Return path for errors $subject = "New message from website"; $message = " The message here "; mail($email, $subject, $message, $headers, "-fbounce@domain.com");
// send autoresponse to enquirer // email headers $headers .= "From: From Name<fromaddress@domain.com>\n"; $headers .= "X-Sender: <fromaddress@domain.com>\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "Return-Path: <fromaddress@domain.com>\n"; // Return path for errors $subject = "Thank you for your enquiry"; $message = " The message here "; mail($email, $subject, $message, $headers, "-fbounce@domain.com");
|
|
|