mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Allowed comma-delimited list in smtp $to var to be consistent with standard mail delivery. Fixes #1353
This commit is contained in:
parent
53a687049c
commit
7416e58759
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ class EmailComponent extends Object{
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_array($this->to)) {
|
if (!is_array($this->to)) {
|
||||||
$tos = array($this->to);
|
$tos = array_map('trim', explode(',', $this->to));
|
||||||
} else {
|
} else {
|
||||||
$tos = $this->to;
|
$tos = $this->to;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue