I am completely new to PHP scripts and compiled the following code, but I would like the email received to be sent from the email field in HTML form, and not to the current Tranquility Zone website [www. tranquilityzone.co.uk@linweb.ahost.me ]. "Please advise what I should change. Thank you very much.
<? $msg .= "Name:\t $_POST[name]\n"; $msg .= "E-mail:\t $_POST[email]\n"; $msg .= "Telephone:\t $_POST[telephone]\n"; $msg .= "Subject:\t $_POST[subject]\n"; $msg .= "Message:\t $_POST[message]\n"; $to = " jenny@tranquilityzone.co.uk "; $subject = "Website feedback message"; $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . $mailheaders = "From: The Tranquility Zone Website <www.tranquilityzone.co.uk>\n"; $mailherders .= "Reply to: $_POST[sender_email]\n"; header( "Location: http://www.tranquilityzone.co.uk/thank_you.html" ); @mail ($to, $subject, $msg, $mailheaders); ?>
source share