vtiger CRM – Versand von doppelten Mails deaktivieren
Inhalt Beschreibung Um im vtiger CRM 5.2.0 das versenden von doppelten Mails zu verhindern, müssen in die Zeilen 165 – 200 in der /share/Web/vtigercrm/modules/Emails/Save.php auskommentiert werden
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
vim /share/Web/vtigercrm/modules/Emails/Save.php if(isset($_REQUEST['send_mail']) && $_REQUEST['send_mail'] && $_REQUEST['parent_id'] != '') { // $user_mail_status = send_mail('Emails',$current_user->column_fields['email1'],$current_user->user_name,'',$_REQUEST['subject'],$_REQUEST['description'],$_REQUEST['ccmail'],$_REQUEST['bccmail'],'all',$focus->id); // // //if block added to fix the issue #3759 // if($user_mail_status != 1){ // $query = "select crmid,attachmentsid from vtiger_seattachmentsrel where crmid=?"; // $result = $adb->pquery($query, array($email_id)); // $numOfRows = $adb->num_rows($result); // for($i=0; $i<$numOfRows; $i++) // { // $attachmentsid = $adb->query_result($result,0,"attachmentsid"); // if($attachmentsid > 0) // { // $query1="delete from vtiger_crmentity where crmid=?"; // $adb->pquery($query1, array($attachmentsid)); // } // // $crmid=$adb->query_result($result,0,"crmid"); // $query2="delete from vtiger_crmentity where crmid=?"; // $adb->pquery($query2, array($crmid)); // } // // $query = "delete from vtiger_emaildetails where emailid=?"; // $adb->pquery($query, array($focus->id)); // // $error_msg = "<font color=red><strong>".$mod_strings['LBL_CHECK_USER_MAILID']."</strong></font>"; // $ret_error = 1; // $ret_parentid = $_REQUEST['parent_id']; // $ret_toadd = $_REQUEST['parent_name']; // $ret_subject = $_REQUEST['subject']; // $ret_ccaddress = $_REQUEST['ccmail']; // $ret_bccaddress = $_REQUEST['bccmail']; // $ret_description = $_REQUEST['description']; // echo $error_msg; // include("EditView.php"); // exit(); // } } |
Quellen https://forums.vtiger.com/viewtopic.php?f=35&t=17720&start=10 $focus->retrieve_entity_info($return_id,”Emails”);