fix tomail param in mail form usage

This commit is contained in:
Christian Foellmann 2021-07-29 17:32:06 +02:00
parent a9f5fd497a
commit f830a0f5e2

View File

@ -186,6 +186,11 @@ if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST
$tmparray[] = trim($_POST['sendto']);
}
if (trim($_POST['tomail'])) {
// Recipients are provided as free text
$tmparray[] = trim($_POST['tomail']);
}
if (count($receiver) > 0) {
// Recipient was provided from combo list
foreach ($receiver as $key => $val) {