From c851dc57f9b182a048d3b59f174dcc8d8b2834b6 Mon Sep 17 00:00:00 2001
From: Greeshma <greeshma.kk@vtiger.com>
Date: Wed, 20 Nov 2019 11:54:17 +0530
Subject: [PATCH] email send mail manager fix

---
 modules/Emails/models/Record.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/Emails/models/Record.php b/modules/Emails/models/Record.php
index 06b8f8781..cd19210eb 100644
--- a/modules/Emails/models/Record.php
+++ b/modules/Emails/models/Record.php
@@ -95,6 +95,7 @@ class Emails_Record_Model extends Vtiger_Record_Model {
             
             // For selectedEmails check and push to emails array
             foreach($selectedEmails as $selectedEmail){
+                $emails=array();
                 if(trim($selectedEmail)){
                     array_push($emails, $selectedEmail);
                 }
-- 
GitLab