I’m modding the feedback module so I may have the fields I require and in doing so I’ve gotten the following error after submitting info: warning: fsockopen(): unable to connect to mail.telsnetgy.net:25 in /home/mysite/public_html/modules/feedback.module on line 376.
What is causing this error? Below is a copy of the modded feedback module and I would be grateful for any help.
<?php
//$Id: feedback.module,v 1.37 2005/06/04 02:14:28 kbahey Exp $
// Copyright 2004-2005 Khalid Baheyeldin http://2bits.com
function feedback_help ($section = 'admin/help#feedback') {
$output = '';
switch($section) {
case 'admin/help#feedback':
$output .= t("
Users with the correct permissions can send feedback
to the site admin via email from a form on the site.
To enable its use, a user needs the \"access feedback\" permission.
The site admin specifies the email address that the users send to, as well as other
parameters, such as what fields to show the user to fill (name, address, email), whether
the user address is to be validated, and whether to log all attempts to use this form.
The email address is never visible to the users, and therefore cannot be used by SPAM
harvesters.
",
array("%permissions" => url("admin/user/permission"), "%feedback" => url("feedback")));
break;
case 'admin/modules#description':
$output = t("Enables visitors to your site to provide feedback from a web form.");
break;
}
return $output;
}
function feedback_perm() {
return array ('can send feedback');
}
function feedback_menu($may_cache) {
global $user;
$items = array();
$access = user_access('can send feedback');
$title = variable_get("feedback_nav_link", "feedback");
if ($may_cache) {
$items[] = array(
'path' => 'feedback',
'callback' => 'feedback_page',
'title' => $title,
'access' => $access,
'weight' => 0);
}
return $items;
}
function feedback_link($type, $node = 0, $main = 0) {
global $user;
$links = array();
if ($type == 'page' && user_access('can send feedback')) {
$links[] = l(t('feedback'), 'feedback');
}
return $links;
}
function feedback_settings() {
$output .= form_textfield(t("Navigation link text"), "feedback_nav_link",
variable_get("feedback_nav_link", "feedback"), 80, 300,
t("The text that will be shown in the navigation link"));
$output .= form_textfield(t("Feedback Page Header"), "feedback_pageheader",
variable_get("feedback_pageheader", "Use this form to send us feedback"), 80, 300,
t("The page header text that will be shown at the top of the feedback page"));
$output .= form_textfield(t("Default Email Address"), "feedback_email",
variable_get("feedback_email", ""), 80, 300,
t("The email address which should receive all form submissions"));
$output .= form_textfield (t("Subject Prefix"), "feedback_subject_prefix",
variable_get("feedback_subject_prefix", "Feedback: "), 80, 80,
t("The prefix that should be added before the subject on each email"));
$output .= form_textarea (t("Instructions"), "feedback_instructions",
variable_get("feedback_instructions", "Enter your message below: "), 60, 10,
t("The instructions that will be displayed for the user on how to fill the form"));
$output .= "
";
$output .= form_textfield (t("Result Message - Success"), "feedback_rmsg_success",
variable_get("feedback_rmsg_success", "Thank you for your message."), 80, 80,
t("The message that will be printed upon successfully completing the feedback request"));
$output .= form_textfield (t("Result Message - Failure"), "feedback_rmsg_failure",
variable_get("feedback_rmsg_failure", "There are errors in your form."), 80, 80,
t("The message that will be printed upon encountering an error in the feedback request"));
$output .= "
" . t("Fields to include on the form:") . "