Php Error

Status
Not open for further replies.

thezone1

New Member
Messages
192
Reaction score
0
Points
0
why are the settings for mail() disabled???

when i test my feedback form i get

Warning: mail() has been disabled for security reasons in /home/thezone1/public_html/php/contact.php on line 25

why????
 

thezone1

New Member
Messages
192
Reaction score
0
Points
0
sorry for the delay of my answer, what do you mean ???
im new to php so go easy lol thanks
 

thezone1

New Member
Messages
192
Reaction score
0
Points
0
oh sorry ill have to post the script in here if thts ok
Edit:
<?php
include('includes/title.inc.php');


// process the email
if (array_key_exists('send', $_POST)) {
$to = 'me@example.com'; // use your own email address
$subject = 'Feedback from Japan Journey site';

// process the $_POST variables
$name = $_POST['name'];
$email = $_POST['email'];
$comments = $_POST['comments'];


// build the message
$message = "Name: $name\n\n";
$message .= "Email: $email\n\n";
$message .= "Comments: $comments";

// limit line length to 70 characters
$message = wordwrap($message, 70);

// send it
$mailSent = mail($to, $subject, $message);
}
?>
Edit:
<form id="feedback" method="post" action="">
<p>
<label for="name">Name:</label>
<input name="name" id="name" type="text" class="formbox" />
</p>
<p>
<label for="email">Email:</label>
<input name="email" id="email" type="text" class="formbox" />
</p>
<p>
<label for="comments">Comments:</label>
<textarea name="comments" id="comments" cols="60" rows="8"></textarea>
</p>
<p>
<input name="send" id="send" type="submit" value="Send message" />
</p>
</form>

Edit:
Thats both the php script and the form

thanks in advance to any help you can give this ones been driving me crazy
 
Last edited:

thezone1

New Member
Messages
192
Reaction score
0
Points
0
yes but you need it to get in lol ill change it later lol
Edit:
and its only to the site page lol
 
Last edited:

thezone1

New Member
Messages
192
Reaction score
0
Points
0
can i not just ask corey or someone to change my settings in the php ini to enable mail() function??
 

Alejandro

Staff
Staff member
Community Support
Messages
9,436
Reaction score
1
Points
38
Your problem is that you have basic php settings. You need to upgrade to intermediate in order to have the mail() function activated. Please go to your account panel on x10's home page in order to change it.
 
Last edited by a moderator:
Status
Not open for further replies.
Top