From aea2b4d2167f7fbd7a41a94502c8ab3f1fc7a8dc Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 14 Jun 2018 11:09:56 -0600 Subject: [PATCH] * Api - Clear recipients between merges to avoid sending subsequent merges to previous contacts --- api/src/Mail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Mail.php b/api/src/Mail.php index 5f2cd94a84..05cb462c53 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6938,6 +6938,7 @@ class Mail { $errorInfo = $email = ''; $sendOK = $openComposeWindow = $openAsDraft = null; + $mailObject->clearAllRecipients(); //error_log(__METHOD__.' ('.__LINE__.') '.' Id To Merge:'.$val); if (/*$GLOBALS['egw_info']['flags']['currentapp'] == 'addressbook' &&*/ count($SendAndMergeTocontacts) > 1 && $val &&