📄 xoopsmailerlocal.php
字号:
<?php
/**
* Localize the mail functions
*
* The English localization is solely for demonstration
*/
// Do not change the class name
class XoopsMailerLocal extends XoopsMailer {
function XoopsMailerLocal(){
$this->XoopsMailer();
// It is supposed no need to change the charset
$this->charSet = strtolower( _CHARSET );
// You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
$this->multimailer->SetLanguage("en");
}
// Multibyte languages are encouraged to make their proper method for encoding FromName
function encodeFromName($text)
{
// Activate the following line if needed
//$text = empty($text) ? "" : "=?{$this->charSet}?B?".base64_encode($text)."?=";
return $text;
}
// Multibyte languages are encouraged to make their proper method for encoding Subject
function encodeSubject($text)
{
// Activate the following line if needed
$text = empty($text) ? "" : "=?{$this->charSet}?B?".base64_encode($text)."?=";
return $text;
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -