/** * Send email * * @param string * @param string * @param string * @return boolean FALSE on error. */ public function sendMail($email, $subject, $body, $headers) { $subject = $this->multimailer->encodeSubject($subject); $this->multimailer->encodeBody($body); $this->multimailer->ClearAllRecipients(); $this->multimailer->AddAddress($email); $this->multimailer->Subject = $subject; $this->multimailer->Body = $body; $this->multimailer->CharSet = $this->charSet; $this->multimailer->Encoding = $this->encoding; if (!empty($this->fromName)) { $this->multimailer->FromName = $this->multimailer->encodeFromName($this->fromName); } if (!empty($this->fromEmail)) { $this->multimailer->Sender = $this->multimailer->From = $this->fromEmail; } $this->multimailer->ClearCustomHeaders(); foreach ($this->headers as $header) { $this->multimailer->AddCustomHeader($header); } if (!$this->multimailer->Send()) { $this->errors[] = $this->multimailer->ErrorInfo; return FALSE; } return TRUE; }
public function __construct() { parent::__construct(); // 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->SetLanguage("en"); }
public function __construct() { parent::__construct(); $this->_deprecated = icms_core_Debug::setDeprecated('icms_messaging_EmailHandler', sprintf(_CORE_REMOVE_IN_VERSION, '1.4')); }