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:
2
smtp.php
2
smtp.php
@@ -172,7 +172,7 @@ class smtp
|
|||||||
500);
|
500);
|
||||||
$from = $this->cleanMail ($from);
|
$from = $this->cleanMail ($from);
|
||||||
if (is_string ($to))
|
if (is_string ($to))
|
||||||
$to = array ($to);
|
$to = explode (",", $to);
|
||||||
if (! is_array ($to) || count ($to) === 0)
|
if (! is_array ($to) || count ($to) === 0)
|
||||||
throw new \Exception ("Can't send mail: no valid recipient provided",
|
throw new \Exception ("Can't send mail: no valid recipient provided",
|
||||||
500);
|
500);
|
||||||
|
|||||||
Reference in New Issue
Block a user