Hi every one. Can some one please recommend a php email script with following facilities: 1) php script 2) User be able to get a copy of the details entered in the form, automatically 3) Be customisable, so i can enter some database values in the form. 4) Be fairly simple to follow 5) Not use PHP 5 ( use only below version 5) 6) Be free 7) Safe Thanks for your time.
Hi Ok, let me see if I can narrow my request done. Can any one recommend a form to email php script that can automatically send, the user, a copy of the email that I receive? I ahve searched for this for two days now. Oh yes, prefer it if it is free. Thanks for your time.
Very basic script, loops through all the fields that have been submitted by the form, ads them to the message body and send and email to the email address that was submitted on form and to yours (edit the $sendTo = ... line) Make sure the email field in the form is named "email" for POST form: $sendTo = $_POST['email'] . ", youremail@yourdomain.com" ; $sendSubj = "Put the Subject here" ; $sendMsg = "<HTML><BODY>" ; foreach ($_POST as $key => $value) $sendMsg = $sendMsg . $key . ":" . $value."<BR>" ; $sendMsg = $sendMsg . "</BODY></HTML>" ; mail($sendTo, $sendSubj, $sendMsg,"From: $email\nX-Mailer: PHP 4.x\nContent-type: text/html; charset=iso-8859-1"); Code (markup): for GET form: $sendTo = $_GET['email'] . ", youremail@yourdomain.com" ; $sendSubj = "Put the Subject here" ; $sendMsg = "<HTML><BODY>" ; foreach ($_GET as $key => $value) $sendMsg = $sendMsg . $key . ":" . $value."<BR>" ; $sendMsg = $sendMsg . "</BODY></HTML>" ; mail($sendTo, $sendSubj, $sendMsg,"From: $email\nX-Mailer: PHP 4.x\nContent-type: text/html; charset=iso-8859-1"); Code (markup):