From 7a0c94832396561fd6ace0834ea6f541cd615f19 Mon Sep 17 00:00:00 2001 From: lia Date: Sat, 2 Dec 2006 11:54:09 +0000 Subject: [PATCH] bugfix #3536 : smtpkeepalive needed to reflect pref in newsletter --- e107_plugins/newsletter/admin_config.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_plugins/newsletter/admin_config.php b/e107_plugins/newsletter/admin_config.php index da28db470..7bbca73f9 100644 --- a/e107_plugins/newsletter/admin_config.php +++ b/e107_plugins/newsletter/admin_config.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/newsletter/admin_config.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:32 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-02 11:54:09 $ +| $Author: lisa_ $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); @@ -369,6 +369,7 @@ class newsletter { $mail->Mailer = "smtp"; $mail->SMTPKeepAlive = TRUE; + $mail->SMTPKeepAlive = (isset($pref['smtp_keepalive']) && $pref['smtp_keepalive']==1) ? TRUE : FALSE; $mail->SMTPAuth = TRUE; $mail->Username = $pref['smtp_username']; $mail->Password = $pref['smtp_password'];