xoopsmailerlocal.php
来自「讲的是网络编程」· PHP 代码 · 共 34 行
PHP
34 行
<?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 = "=?{$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 = "=?{$this->charSet}?B?".base64_encode($text)."?=";
return $text;
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?