|
|
@@ -176,7 +176,12 @@ class Email
|
|
|
*/
|
|
|
protected function buildAddress($emails)
|
|
|
{
|
|
|
- $emails = is_array($emails) ? $emails : array_flip(explode(',', str_replace(";", ",", $emails)));
|
|
|
+ if (!is_array($emails)) {
|
|
|
+ $emails = array_flip(explode(',', str_replace(";", ",", $emails)));
|
|
|
+ foreach ($emails as $key => $value) {
|
|
|
+ $emails[$key] = strstr($key, '@', true);
|
|
|
+ }
|
|
|
+ }
|
|
|
return $emails;
|
|
|
}
|
|
|
|