smtp: if multiple recipients are provided by comma separated string, convert them to array

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3762 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-06-14 08:47:31 +00:00
parent 3d571ae233
commit 13767bb7b8

View File

@@ -172,7 +172,7 @@ class smtp
500);
$from = $this->cleanMail ($from);
if (is_string ($to))
$to = array ($to);
$to = explode (",", $to);
if (! is_array ($to) || count ($to) === 0)
throw new \Exception ("Can't send mail: no valid recipient provided",
500);