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
1 changed files with 3 additions and 2 deletions

View File

@ -220,7 +220,8 @@ if (filter('op') == 'link_file' || filter('op') == 'unlink_file') {
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 @@ if (filter('op') == 'link_file' || filter('op') == 'unlink_file') {
}
// Preparazione email
$mail = new Mail();
$mail = new Mail($id_account);
// Conferma di lettura
if (!empty($post['read_notify'])) {