diff --git a/smtp.mail.inc b/smtp.mail.inc
index 4aa423a..4b150f3 100644
--- a/smtp.mail.inc
+++ b/smtp.mail.inc
@@ -240,7 +240,7 @@ class SmtpMailSystem implements MailSystemInterface {
           break;
 
         case 'cc':
-          $ccrecipients = split(',', $value);
+          $ccrecipients = preg_split ('/,/', $value);
           foreach ($ccrecipients as $ccrecipient) {
             if (strpos($ccrecipient, '<') !== FALSE) {
               $ccparts = explode(' <', $ccrecipient);
@@ -256,7 +256,7 @@ class SmtpMailSystem implements MailSystemInterface {
           break;
 
         case 'bcc':
-          $bccrecipients = split(',', $value);
+          $bccrecipients = preg_split ('/,/', $value);
           foreach ($bccrecipients as $bccrecipient) {
             if (strpos($bccrecipient, '<') !== FALSE) {
               $bccparts = explode(' <', $bccrecipient);
