';
- if (! empty($conf->global->$param) && ! isValidEmail($conf->global->$param)) print ' '.img_warning($langs->trans("ErrorBadEMail"));
+ $value=GETPOST($param)?GETPOST($param,'alpha'):$conf->global->$param;
+ $s=''; // Do not use type="email" here, we must be able to enter a list of email with , separator.
+ $arrayemail=explode(',',$value);
+ $showwarning=0;
+ foreach($arrayemail as $key=>$valuedet)
+ {
+ $valuedet=trim($valuedet);
+ if (! empty($valuedet) && ! isValidEmail($valuedet)) $showwarning++;
+ }
+ if ((! empty($conf->global->$param)) && $showwarning) $s.=' '.img_warning($langs->trans("ErrorBadEMail"));
+ print $form->textwithpicto($s,$langs->trans("YouCanUseCommaSeparatorForSeveralRecipients"));
print '