Re: Auto Responders
OK... I just found out the original posts have been deleted.
Make a page and save it as action, go to page properties and change them to php. You can title it THANK YOU and put whatever you want on the page itself.
Go to page html--start of page-- and copy and paste this code in:
Make sure that on the form page, which is a different page you title the form box "email' in lower case. You can edit the parts in red, You change the email address of couse and in the form properties you change the action to action.php . Use multiform/data and post.
You can probably change/edit the form you currently have. This will email your client.
Send all thanks to NavalDesign as he gave me the codes.
Karen
OK... I just found out the original posts have been deleted.
Make a page and save it as action, go to page properties and change them to php. You can title it THANK YOU and put whatever you want on the page itself.
Go to page html--start of page-- and copy and paste this code in:
<?PHP
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$mailto = "youremail@yourdomain.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Email from Our Contact Form";
$mailhead = "From: $email\n"
. "MIME-Version: 1.0"."\r\n"
. "Content-Type: text/plain; charset=utf-8"."\r\n"
. "Content-Transfer-Encoding: 8bit"."\r\n"
. "X-Mailer: PHP v".phpversion();
reset ($HTTP_POST_VARS);
$mailstart = "Values submitted from website form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
$mail_message = $mailstart.$mailbody;
mail($mailto, $mailsubj, stripslashes($mail_message), $mailhead);
$responder_start = "Thank you for submitting your info.
Here is a copy of your submission";
$mailhead = "From: Your Site Title <$mailto>\n"
. "MIME-Version: 1.0"."\r\n"
. "Content-Type: text/plain; charset=utf-8"."\r\n"
. "Content-Transfer-Encoding: 8bit"."\r\n"
. "X-Mailer: PHP v".phpversion();
$responder_subject = "Thank you for contacting us!";
$responder_message = $responder_start.$mailbody;
mail($email, $responder_subject, stripslashes($responder_message), $mailhead);
}
?>
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$mailto = "youremail@yourdomain.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Email from Our Contact Form";
$mailhead = "From: $email\n"
. "MIME-Version: 1.0"."\r\n"
. "Content-Type: text/plain; charset=utf-8"."\r\n"
. "Content-Transfer-Encoding: 8bit"."\r\n"
. "X-Mailer: PHP v".phpversion();
reset ($HTTP_POST_VARS);
$mailstart = "Values submitted from website form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
$mail_message = $mailstart.$mailbody;
mail($mailto, $mailsubj, stripslashes($mail_message), $mailhead);
$responder_start = "Thank you for submitting your info.
Here is a copy of your submission";
$mailhead = "From: Your Site Title <$mailto>\n"
. "MIME-Version: 1.0"."\r\n"
. "Content-Type: text/plain; charset=utf-8"."\r\n"
. "Content-Transfer-Encoding: 8bit"."\r\n"
. "X-Mailer: PHP v".phpversion();
$responder_subject = "Thank you for contacting us!";
$responder_message = $responder_start.$mailbody;
mail($email, $responder_subject, stripslashes($responder_message), $mailhead);
}
?>
You can probably change/edit the form you currently have. This will email your client.
Send all thanks to NavalDesign as he gave me the codes.
Karen
Comment