Merge pull request #18300 from cfoellmann/fix-tomail-field
fix `tomail` param in mail form usage
This commit is contained in:
commit
530a773eaa
@ -182,10 +182,15 @@ if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST
|
|||||||
|
|
||||||
$tmparray = array();
|
$tmparray = array();
|
||||||
if (trim($_POST['sendto'])) {
|
if (trim($_POST['sendto'])) {
|
||||||
// Recipients are provided into free text
|
// Recipients are provided into free text field
|
||||||
$tmparray[] = trim($_POST['sendto']);
|
$tmparray[] = trim($_POST['sendto']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (trim($_POST['tomail'])) {
|
||||||
|
// Recipients are provided into free hidden text field
|
||||||
|
$tmparray[] = trim($_POST['tomail']);
|
||||||
|
}
|
||||||
|
|
||||||
if (count($receiver) > 0) {
|
if (count($receiver) > 0) {
|
||||||
// Recipient was provided from combo list
|
// Recipient was provided from combo list
|
||||||
foreach ($receiver as $key => $val) {
|
foreach ($receiver as $key => $val) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user