to <b>%s</b>", $login, $email);
}
- require_once 'lib/phpmailer/class.phpmailer.php';
+ require_once 'classes/ttrssmailer.php';
if ($email) {
require_once "lib/MiniTemplator.class.php";
$tpl->generateOutputToString($message);
- $mail = new PHPMailer();
+ $mail = new ttrssMailer();
- $mail->PluginDir = "lib/phpmailer/";
- $mail->SetLanguage("en", "lib/phpmailer/language/");
-
- $mail->CharSet = "UTF-8";
-
- $mail->From = SMTP_FROM_ADDRESS;
- $mail->FromName = SMTP_FROM_NAME;
- $mail->AddAddress($email, $login);
-
- if (SMTP_HOST) {
- $mail->Host = SMTP_HOST;
- $mail->Mailer = "smtp";
- $mail->SMTPAuth = SMTP_LOGIN != '';
- $mail->Username = SMTP_LOGIN;
- $mail->Password = SMTP_PASSWORD;
- }
-
- $mail->IsHTML(false);
- $mail->Subject = __("[tt-rss] Password change notification");
- $mail->Body = $message;
-
- $rc = $mail->Send();
+ $rc = $mail->quickMail($email, $login,
+ __("[tt-rss] Password change notification"),
+ $message, false);
if (!$rc) print_error($mail->ErrorInfo);
}
public $SMTPAuth=False;\r
public $Username;\r
public $Password;\r
- \r
+\r
function __construct() {\r
$this->SetLanguage("en", "lib/phpmailer/language/");\r
//if SMTP_HOST is specified, use SMTP to send mail directly\r
}else{\r
$Port = "25";\r
}\r
- \r
+\r
//if SMTP_LOGIN is specified, set credentials and enable auth\r
if(SMTP_LOGIN){\r
$SMTPAuth = true;\r
$this->addAddress($toAddress, $toName);\r
$this->Subject = $subject;\r
$this->Body = $body;\r
+ $this->IsHTML($altbody != '');\r
$rc=$this->send();\r
return $rc;\r
}\r
}\r
\r
-?>
\ No newline at end of file
+?>\r