Ver Fonte

Added phpMailer ClearAttachments function in api_mail_html

José Loguercio há 8 anos atrás
pai
commit
9a05026c97
1 ficheiros alterados com 4 adições e 0 exclusões
  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;
 }