View Single Post
  #5 (permalink)  
Old 06-08-03, 04:03 AM
Damian's Avatar
Damian Damian is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Use MAIL() that'll work. That's supposed to be configured with the servers mailing system. To process a form you do something like this. Put the following in mail.php

<?php

$extra = "Reply-To: $email\r\n";
$mess = "E-Mail : $email\nName : ".$name."\nIP:".$REMOTE_ADDR."\n\nMessage:\n--------\n".$message;

mail("users@theirmail.com", $subject, $mess,
"From: Whatever Website\r\n"
."Reply-To: $email\r\n");


echo("Thanks. Your message has been sent.<br><br><a href=\"".$HTTP_REFERER."\">Go Back.</a>\n");

?>

This is just a contact form. Of course you'll get the picture... Besides if you need help just supply more detailed information and what your form is doing.
__________________
"My occupation now, I suppose, is jail inmate."
- Unibomber Theodore Kaczynski, when asked in court what his current profession was.
Reply With Quote