diff --git a/modules/anagrafiche/buttons.php b/modules/anagrafiche/buttons.php
index 04c952d19..8bfb49e95 100644
--- a/modules/anagrafiche/buttons.php
+++ b/modules/anagrafiche/buttons.php
@@ -4,7 +4,7 @@ if (in_array($id_cliente, $tipi_anagrafica)) {
echo '
diff --git a/modules/smtp/actions.php b/modules/smtp/actions.php
index 93b90ebe6..c3ea46071 100644
--- a/modules/smtp/actions.php
+++ b/modules/smtp/actions.php
@@ -44,11 +44,11 @@ switch (post('op')) {
// Validazione indirizzo email mittente
$check_email = Validate::isValidEmail(post('from_address'));
-
+
// Controllo sulla validazione
- if (!empty($check_email['valid-format'])) {
+ if (empty($check_email)) {
flash()->info(tr('Sintassi email verificata'));
- } else {
+ } else if (!$check_email['valid-format']) {
flash()->error(tr("Attenzione: l'indirizzo email _EMAIL_ sembra non essere valido", [
'_EMAIL_' => post('from_address'),
]));