diff --git a/mail.php b/mail.php
index 8447d7cbd..038d0088d 100755
--- a/mail.php
+++ b/mail.php
@@ -28,7 +28,7 @@ $smtp = $template->account;
$body = $module->replacePlaceholders($id_record, $template['body']);
$subject = $module->replacePlaceholders($id_record, $template['subject']);
-$email = $module->replacePlaceholders($id_record, '{email}');
+$emails = explode( ';', $module->replacePlaceholders($id_record, '{email}') );
$id_anagrafica = $module->replacePlaceholders($id_record, '{id_anagrafica}');
// Campi mancanti
@@ -80,10 +80,17 @@ if (!empty($template['bcc'])) {
echo '
'.tr('Destinatari').'
-
-
- {[ "type": "email", "name": "destinatari[0]", "value": "'.$email.'", "icon-before": "choice|email", "extra": "onkeyup=\'aggiungiDestinatario();\'", "class": "destinatari", "required": 1 ]}
-
+
';
+
+ $idx = 0;
+
+ foreach( $emails as $email ){
+ echo '
+
+ {[ "type": "email", "name": "destinatari['.$idx++.']", "value": "'.$email.'", "icon-before": "choice|email", "extra": "onkeyup=\'aggiungiDestinatario();\'", "class": "destinatari", "required": 1 ]}
+
';
+ }
+echo '
diff --git a/modules/interventi/add.php b/modules/interventi/add.php
index 6eb0fcb0c..dcae02126 100755
--- a/modules/interventi/add.php
+++ b/modules/interventi/add.php
@@ -165,6 +165,14 @@ echo '
{[ "type": "select", "label": "'.tr('Cliente').'", "name": "idanagrafica", "required": 1, "value": "'.(!$id_cliente ? $id_anagrafica : $id_cliente).'", "ajax-source": "clienti", "icon-after": "add|'.$module_anagrafiche['id'].'|tipoanagrafica=Cliente&readonly_tipo=1", "readonly": "'.((empty($id_anagrafica) && empty($id_cliente)) ? 0 : 1).'" ]}
+
+
+ {[ "type": "select", "label": "'.tr('Sede destinazione').'", "name": "idsede_destinazione", "value": "'.$id_sede.'", "ajax-source": "sedi" ]}
+
+
+
+ {[ "type": "select", "label": "'.tr('Per conto di').'", "name": "idclientefinale", "value": "'.$id_cliente_finale.'", "ajax-source": "clienti" ]}
+