From 13767bb7b8420d397a2f79a7777fef8a5f46a1b2 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 14 Jun 2017 08:47:31 +0000 Subject: [PATCH] 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 --- smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp.php b/smtp.php index aa5d7a9..1705134 100644 --- a/smtp.php +++ b/smtp.php @@ -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);