kathleencook88 Posted February 25, 2011 Share Posted February 25, 2011 Hello, Basically I would like to have an auto email response after someone fills out my HTML form so that I can provide them with a special link to their given email address. I have managed to get the data they enter in my form sent to my email address, I just can’t figure out for the life of me how to send an automatic email message to their email address. Below is the PHP script I’m using with my form. If someone could please provide me with the rest of the script I need so that an automatic email message can be sent, it would be greatly appreciated! Please note I’m very new to PHP <?php $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $postcode = $_POST['postcode']; $message = "Name: $name \n"; $message .= "Phone: $phone \n"; $message .= "Postcode: $postcode \n"; mail('something@something.com', 'Feedback From Results', $message, 'From: ' . $email); header( "Location: http://something.html" ); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.