Browse Source

Added phpMailer ClearAttachments function in api_mail_html

José Loguercio 8 years ago
parent
commit
9a05026c97
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/inc/lib/api.lib.php

+ 4 - 0
main/inc/lib/api.lib.php

@@ -8021,6 +8021,10 @@ function api_mail_html(
 
     // Clear all the addresses.
     $mail->ClearAddresses();
+    
+    // Clear all attachments
+    $mail->ClearAttachments();
+    
     return 1;
 }