ok i have a form on web site peeps fill it in and details get put into database and it sends me an email to say new record has been added but what i want it to do is send a reply email to the new member with some details in it this is the code i have for the form etc //Writes the information to the database mysql_query("INSERT INTO `members` VALUES ('$region', '$name', '$username', '$password', '$email', '$contact' , '$parkname', '$county', '$parklocation', '$make', '$caravandetails', '$smoke', '$pets', '$kids', '$sex', '$pname', '$enq')"); //compose the mail message $msg= "New Record\n Region: $region, Name: $name, Username: $username:, Email: $email"; //send the mail mail('caravanhire3@googlemail.com','New Member',$msg) ?> <?php echo "your information has been added to the directory You will be redirected in three seconds!><br /><br /> <div class='info'>If you don't wish to wait, <a href='index.php'>click here</a>"; echo'<meta http-equiv="REFRESH" content="2;url=index.php">'; ?> PHP: if any one can help cheers Doug
<?php mail($email, 'Welcome to my site', $msg); ?> PHP: Alternatively, try: http://forums.digitalpoint.com/showthread.php?t=684907