Click to See Complete Forum and Search --> : Formmail and autoresponders


GenerationX
10-27-2004, 05:45 PM
To anyone who can be of some assistance. Yes I'm a newbe trying to do complex things on the web (can you blame me). I understand HTML and cut and paste. I know that to do more you need to know more thus coin the phrase- knowledge is power. So I find myself almost powerless concerning the issue i'm faced with. Where their is a will their is a way. My will has led me (thus far) to this forum seeking what may be considered Goliath to some and 3 stones to others.

I would like to send an autoresponce to a user after he or she has submitted a form mail. I have the form mail working but I am stumped when it comes to attaching an autoresponce to that submission.

Thank you in advance for any help on how to do this.

96turnerri
10-27-2004, 08:56 PM
just add something like


$to = "your_email@domain.net";
$subject = "Auto Responder";
$msg = "Thanks for contacting us we will get back to you soon";
$headers = "From: someone";
mail($to, $subject, $msg, $headers);

GenerationX
10-27-2004, 09:08 PM
Ok where do I place this????

GenerationX
10-27-2004, 09:19 PM
How does this script know what email to send the autoresponce to. Does the script take the email address from the info submitted buy the user?

GenerationX
10-27-2004, 09:45 PM
Example ----- you sign up for a news letter at cbs.com after submitting your info to cbs.com you are redirected to a thank you for your submittion page which tells you to check your email for futher information. It was all done automatically. I don't understand how to do the last part. I can send an autoresponce if the user is sending mail through outlook or whatever mail program they use. If info is sent via form to my mailbox all I get is the info from the form. If I want the user to receive more info I have to do it manually. Can you show me how to cut out the manual part?

96turnerri
10-27-2004, 10:33 PM
ok in your php form mail, add this

$to = $_SERVER["REQUEST_METHOD"]."email";
$subject = "Auto Responder";
$msg = "Thanks for contacting us we will get back to you soon";
$headers = "From: someone";
mail($$to, $subject, $msg, $headers);

that will take the email entered and send an email to them, presuming the email field is called 'email' you are giving me very little info to work with, please post your code so far, Rich

GenerationX
10-28-2004, 01:17 AM
What happened to the help?

GenerationX
10-29-2004, 03:54 AM
Ok can you guys take another look at this?