diff --git a/actions.php b/actions.php index f7b95c811..ec11c3210 100644 --- a/actions.php +++ b/actions.php @@ -220,7 +220,8 @@ download($upload_dir.'/'.$rs[0]['filename'], $rs[0]['original']); } elseif (filter('op') == 'send-email') { $template = Mail::getTemplate($post['template']); - + $id_account = $template['id_smtp']; + // Elenco degli allegati $attachments = []; @@ -268,7 +269,7 @@ } // Preparazione email - $mail = new Mail(); + $mail = new Mail($id_account); // Conferma di lettura if (!empty($post['read_notify'])) {