Quote
Fatal error: Call to undefined method PHPMailer::SetLanguage() in \includes\sendmail_include.php on line 28
require_once INCLUDES."class.phpmailer.php";
$mail = new PHPMailer();
if (file_exists(INCLUDES."language/phpmailer.lang-".$locale['phpmailer'].".php")) {
[color=#ff0000] $mail->SetLanguage($locale['phpmailer'], INCLUDES."language/");[/color]
} else {
$mail->SetLanguage("en", INCLUDES."language/");
}
function SetLanguage($lang_type, $lang_path = 'language/') {
if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
} elseif (file_exists($lang_path.'phpmailer.lang-en.php')) {
include($lang_path.'phpmailer.lang-en.php');
} else {
$this->SetError('Could not load language file');
return false;
}
$this->language = $PHPMAILER_LANG;
return true;
}
Category Forum
System Administration - 8Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions