print_diagnostic_test_result(0, $vbphrase['please_complete_required_fields']); } if (!is_valid_email($emailaddress)) { print_diagnostic_test_result(0, $vbphrase['invalid_email_specified']); } $subject = $vbulletin->options['needfromemail'] ? $vbphrase['vbulletin_email_test_withf'] : $vbphrase['vbulletin_email_test']; $message = construct_phrase($vbphrase['vbulletin_email_test_msg'], $vbulletin->options['bbtitle']); if (!class_exists('vB_Mail', false)) { require_once DIR . '/includes/class_mail.php'; } if ($vbulletin->options['use_smtp']) { $mail = new vB_SmtpMail($vbulletin); } else { $mail = new vB_Mail($vbulletin); } $mail->set_debug(true); $mail->start($emailaddress, $subject, $message, $vbulletin->options['webmasteremail']); // error handling @ini_set('display_errors', true); if (strpos(@ini_get('disable_functions'), 'ob_start') !== false) { // alternate method in case OB is disabled; probably not as fool proof @ini_set('track_errors', true); $oldlevel = error_reporting(0); } else { ob_start(); } $mailreturn = $mail->send(); if (strpos(@ini_get('disable_functions'), 'ob_start') !== false) { error_reporting($oldlevel); $errors = $php_errormsg; } else {