From c56b5eeb8f36febe2c133c11252bab48d68e4ed0 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 2 Aug 2011 16:53:04 +0000 Subject: [PATCH] Fixed issue: Optimized SMTP connections so they are re-used instead of opening one connection for each email send git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10626 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/dataentry.php | 2 +- admin/tokens.php | 18 +++++++++++------- admin/usercontrol.php | 10 +++++----- admin/userrighthandling.php | 16 ++++++++-------- common_functions.php | 20 ++++++++++++++++++-- index.php | 12 ++++++++---- register.php | 8 ++++---- save.php | 4 ++-- 8 files changed, 57 insertions(+), 33 deletions(-) diff --git a/admin/dataentry.php b/admin/dataentry.php index d73d4fe0152..707601b8b56 100644 --- a/admin/dataentry.php +++ b/admin/dataentry.php @@ -394,7 +394,7 @@ if (isset($tokendata['token'])) {$message.="&token=".$tokendata['token'];} $from = $thissurvey['adminemail']; - if (SendEmailMessage($message, $subject, $saver['email'], $from, $sitename, false, getBounceEmail($surveyid))) + if (SendEmailMessage(null, $message, $subject, $saver['email'], $from, $sitename, false, getBounceEmail($surveyid))) { $emailsent="Y"; $dataentryoutput .= "".$clang->gT("An email has been sent with details about your saved survey")."
\n"; diff --git a/admin/tokens.php b/admin/tokens.php index 0d9c28dada7..e457f100fa4 100644 --- a/admin/tokens.php +++ b/admin/tokens.php @@ -1553,6 +1553,7 @@ if ($emcount > 0) { $tokenoutput .= "