This commit is contained in:
Thomas Zilio 2018-03-30 13:29:21 +02:00
parent 8279ee56af
commit 9c6968ad66
1 changed files with 5 additions and 1 deletions

View File

@ -217,6 +217,10 @@ if (filter('op') == 'link_file' || filter('op') == 'unlink_file') {
} elseif (filter('op') == 'send-email') {
$template = Mail::getTemplate($post['template']);
// Utilizzo di una cartella particolare per il salvataggio temporaneo degli allegati
$upload_dir = DOCROOT.'/files/attachments';
// Elenco degli allegati
$attachments = [];
// Stampe
@ -314,7 +318,7 @@ if (filter('op') == 'link_file' || filter('op') == 'unlink_file') {
$mail->Subject = $post['subject'];
// Allegati
foreach ($final_attachments as $attachment) {
foreach ($attachments as $attachment) {
$mail->AddAttachment($attachment['path'], $attachment['name']);
}