Fix bad email tested

This commit is contained in:
Laurent Destailleur 2024-01-05 12:28:28 +01:00
parent 242c403f50
commit b027ca3837

View file

@ -1033,7 +1033,7 @@ if ($action == 'edit') {
}
}
// Test SPF default automatic email from
$defaultnoreplyemail = getDolGlobalString('MAIN_INFO_SOCIETE_MAIL');
$defaultnoreplyemail = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
if ($defaultnoreplyemail != $companyemail) { // We show if email differs
$dnsinfo = false;
if (!empty($defaultnoreplyemail) && function_exists('dns_get_record') && !getDolGlobalString('MAIN_DISABLE_DNS_GET_RECORD')) {