Jump to content

E-mailer error help


cfgcjm

Recommended Posts

I'm trying to set up a php email form, i'm not getting any errors but i'm not getting the form emailed to me.

 

This is my code...I've been looking for a while and just can't find the problem.

<?php
if (isset ($_POST['submit'])) { 
$Q1 = $_POST['Q1'];
$Q2 = $_POST['Q2'];
$Q3 = $_POST['Q3'];
$Q4 = $_POST['Q4'];
$Q5 = $_POST['Q5'];
$Q6 = $_POST['Q6'];
$Q7 = $_POST['Q7'];
$Q8 = $_POST['Q8'];
$Q9 = $_POST['Q9'];

$subject="St Johns Web Survey";
$email="[email protected]";

$recipient = '[email protected]';

$forminfo ="The following survey was submitted:\n\n\n
1.	What is your age?        $Q1\n\n
2.	How would you rate yourself as an Internet user?        $Q2\n\n
3.	How did you first hear about our website?        $Q3\n\n
4.	How often do you visit our site?        $Q4\n\n
5.	How satisfied are you with your experience at stjohnsuccjonestown.org?        $Q5\n\n
6.	If you are not totally satisfied, please describe the reasons for your dissatisfaction below:        $Q6\n\n
7.	Please tell us what can be done to improve the quality of the information on our website:         $Q7\n\n
8.	What is it about this site that you would most like to see improved?        $Q8\n\n
9.	What changes, additional features, or information would you like to see on our website?        $Q9";
$sent=mail($recipient, $subject, $forminfo, "From: $email");
}
?>

Link to comment
https://forums.phpfreaks.com/topic/93541-e-mailer-error-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.