09/10/2018, 17:39
[Q] Xin lam on chi cach khac phu trong server
xin chao tat ca
minh dung phptriad221 de chay server o nha,minh da cai duoc phpnuke6 co dia chi la http://65.29.19.52/forum/html/index.php ,nhung khi minh vo feedback de goi mot feedback ,sau khi dien het email,ten va message va click send thi no bao la :
Warning: Failed to Connect in c:apachehtdocsforumhtmlmodulesFeedbackindex .php on line 79
Mail has been sent!
Thank you for contacting us
minh that tinh khong biet phai lam sao ,xin cac cao thu va admin chi dum,ban co nghi la phptraid no khong support SMTP khong?minh co copy cai index.php trong c:apachehtdocsforumhtmlmodulesFeedback de cac ban xem thu va cho minh y kien can phai sua cai gi de cho o thich hop va khong bao loi nua:
<?php
/************************************************** **********************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* http://www.InternetIntl.com */
/* jack@internetintl.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************** **********************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
$form_block = "
<center><font class="title"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class="content">"._FEEDBACKNOTE."</font>
<FORM METHOD="post" ACTION="modules.php?name=$module_name">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type="text" NAME="sender_name" VALUE="$sender_name" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type="text" NAME="sender_email" VALUE="$sender_email" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME="message" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type="hidden" name="opi" value="ds">
<P><INPUT TYPE="submit" NAME="submit" VALUE=""._SEND.""></p>
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class="option"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class="option"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class="option"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$msg = "$sitename ";
$msg .= ""._SENDERNAME.": $sender_name ";
$msg .= ""._SENDEREMAIL.": $sender_email ";
$msg .= ""._MESSAGE.": $message ";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email> ";
$mailheaders .= "Reply-To: $sender_email ";
line 79=>mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>
cam on cac ban da doc bai nay,rat hy vong duoc tra loi som,bye bye
p/s:hien tai minh khogn co o vn,va minh dang dung cable modem,minh lam server tat ca la o nha tren computer cua minh,khogn qua mot dich vu nao khac,bye bye
minh dung phptriad221 de chay server o nha,minh da cai duoc phpnuke6 co dia chi la http://65.29.19.52/forum/html/index.php ,nhung khi minh vo feedback de goi mot feedback ,sau khi dien het email,ten va message va click send thi no bao la :
Warning: Failed to Connect in c:apachehtdocsforumhtmlmodulesFeedbackindex .php on line 79
Mail has been sent!
Thank you for contacting us
minh that tinh khong biet phai lam sao ,xin cac cao thu va admin chi dum,ban co nghi la phptraid no khong support SMTP khong?minh co copy cai index.php trong c:apachehtdocsforumhtmlmodulesFeedback de cac ban xem thu va cho minh y kien can phai sua cai gi de cho o thich hop va khong bao loi nua:
<?php
/************************************************** **********************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* http://www.InternetIntl.com */
/* jack@internetintl.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************** **********************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
$form_block = "
<center><font class="title"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class="content">"._FEEDBACKNOTE."</font>
<FORM METHOD="post" ACTION="modules.php?name=$module_name">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type="text" NAME="sender_name" VALUE="$sender_name" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type="text" NAME="sender_email" VALUE="$sender_email" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME="message" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type="hidden" name="opi" value="ds">
<P><INPUT TYPE="submit" NAME="submit" VALUE=""._SEND.""></p>
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class="option"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class="option"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class="option"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$msg = "$sitename ";
$msg .= ""._SENDERNAME.": $sender_name ";
$msg .= ""._SENDEREMAIL.": $sender_email ";
$msg .= ""._MESSAGE.": $message ";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email> ";
$mailheaders .= "Reply-To: $sender_email ";
line 79=>mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>
cam on cac ban da doc bai nay,rat hy vong duoc tra loi som,bye bye
p/s:hien tai minh khogn co o vn,va minh dang dung cable modem,minh lam server tat ca la o nha tren computer cua minh,khogn qua mot dich vu nao khac,bye bye
Bài liên quan
Chương trình mail của mình đến 3Mb mấy nên không send cho bạn được.