طيب ببساطة
في الملف newrply أو newthread ابحث عن
كود PHP:
require("./global.php");
أضف اسفلها
كود PHP:
function vbmail($toemail, $subject, $message, $from = '', $headers = '', $username = '') {
global $bbtitle, $webmasteremail;
$toemail = trim($toemail);
$subject = trim($subject);
$message = preg_replace("/(\r\n|\r|\n)/s", "\r\n", trim($message));
$from = trim($from);
$username = trim($username);
// work out the 'From' header
if ($from == '') {
$headers = "From: \"$bbtitle Mailer\" <$webmasteremail>\r\n" . $headers;
} else {
$headers = 'From: "' . iif($username, "$username @ $bbtitle", $from) . "\" <$from>\r\n" . $headers;
}
// actually send the email message
mail($toemail, $subject, $message, $headers);
}
وبكذا مايقدر يقول الدالة غير معرفة