123 $this->ClearAllRecipients();
124 $config_handler = &xoops_gethandler(
'config');
125 $xoopsMailerConfig = &$config_handler->getConfigsByCat(XOOPS_CONF_MAILER);
126 $this->From = $xoopsMailerConfig[
'from'];
127 if (
'' == $this->From) {
128 $this->From = defined(
'XOOPS_NOTIFY_FROM_EMAIL') ? XOOPS_NOTIFY_FROM_EMAIL : $xoopsConfig[
'adminmail'];
130 $this->Sender = defined(
'XOOPS_NOTIFY_SENDER_EMAIL') ? XOOPS_NOTIFY_SENDER_EMAIL : $xoopsConfig[
'adminmail'];
131 if (
'smtpauth' == $xoopsMailerConfig[
'mailmethod']) {
132 $this->Mailer =
'smtp';
133 $this->SMTPAuth =
true;
134 $this->Host = implode(
';', $xoopsMailerConfig[
'smtphost']);
135 $this->Username = $xoopsMailerConfig[
'smtpuser'];
136 $this->Password = $xoopsMailerConfig[
'smtppass'];
138 $this->Mailer = $xoopsMailerConfig[
'mailmethod'];
139 $this->SMTPAuth =
false;
140 $this->Sendmail = $xoopsMailerConfig[
'sendmailpath'];
141 $this->Host = implode(
';', $xoopsMailerConfig[
'smtphost']);
190 public function SetLanguage($lang_type =
'en', $lang_path =
'language/')
193 $ext = substr($lang_path, -1, 1);
194 if (
'/' !== $ext && file_exists($lang_path)) {
196 $this->language = $PHPMAILER_LANG;
200 return parent::SetLanguage($lang_type, $lang_path);