Re: Help With Form Mail
| From: | Marek Kilimajer | Date: | Tue, 11 Feb 2003 17:20:05 +0000 |
| Subject: | Re: Help With Form Mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135211@lists.php.net to get a copy of this message | ||
mail($mailto, $mailsubj, $msg, $mailheader);
- where does $mailto come from?
WAW wrote:
Hello All, I have a problem. I did this form mail script and it is sending the email to the poster not the email specified in the $mailto. Can someone help me. Sorry it will be long, the code that is: CODE: <? //File_name = send_form.php// include "header.htm"; include "setup.php"; $msg .= "Senders Name: \t$_POST[senders_name]\n"; $msg .= "Senders Email: \t$_POST[senders_email]\n\n";$msg .= "Message: \t$_POST[message]\n\n"; $msg .= "From: \t$_POST[senders_name]\n\n";$mailheader .= "Reply To: \t$_POST[senders_email]\n\n"; mail($mailto, $mailsubj, $msg, $mailheader); ?> <html> <head> <title>Email Sent Successfully!!!</title> </head> <body> <center><H2>The Following E-Mail Has Been Sent Successfully:</H2> <p><strong>Your Name:</strong><br> <? echo "$_POST[senders_name]"; ?> <p><strong>Your Message</strong><br> <? echo "$_POST[message]"; ?> <br> <br> <? include "footer.htm"; ?></center> </body> </html> And Here is the include file (setup): <? //File_Name = "setup.php"// //Change below to your email address// $mailto = "webmaster@reptilians.org"; //change below to your subject// $mailsubj = "FeedBack"; //change below to the Subject you want in the email,// //LEAVE THE \n AT THE END// $msg .= "Email Feedback From Site\n"; ?> Thanks in advance!! :-) I am new at the PHP programming thing, so bare with me. Thanks, WAW <http://reptilians.org/> http://reptilians.org Forums: <http://reptilians.org/boards> http://reptilians.org/boards <http://allscripts.reptilians.org> http://allscripts.reptilians.org/cgi-bin/index.cgi