1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-14 18:40:36 +01:00

Bugfix: corretto indirizzo mittente in invio mail

This commit is contained in:
Bacca97 2018-06-25 19:05:00 +02:00
parent bfea917c6a
commit e143624cf3

View File

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