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);