View Single Post
Old 06-27-2006, 04:20 AM   #5 (permalink)
JamieJelly
v7n Mentor
 
JamieJelly's Avatar
 
Join Date: 03-09-06
Posts: 1,250
iTrader: 0 / 0%
Latest Blog:
None

JamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest order
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"); 
JamieJelly is offline