fix tomail param in mail form usage
This commit is contained in:
parent
a9f5fd497a
commit
f830a0f5e2
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user