XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
xoopsmailerlocal.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
23 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 
30 // Do not change the class name
32 {
38  function XoopsMailerLocal()
39  {
40  $this->XoopsMailer();
41  // It is supposed no need to change the charset
42  $this->charSet = strtolower(_CHARSET);
43  // You MUST specify the language code value so that the file exists: XOOPS_ROOT_PAT/class/mail/phpmailer/language/lang-["your-language-code"].php
44  $this->multimailer->SetLanguage("en");
45  }
46 
47  // Multibyte languages are encouraged to make their proper method for encoding FromName
48  function encodeFromName($text)
49  {
50  // Activate the following line if needed
51  // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
52  return $text;
53  }
54 
55  // Multibyte languages are encouraged to make their proper method for encoding Subject
56  function encodeSubject($text)
57  {
58  // Activate the following line if needed
59  // $text = "=?{$this->charSet}?B?".base64_encode($text)."?=";
60  return $text;
61  }
62 }