Skip to content

Commit 8001e8c

Browse files
committed
Fixed email recipients with comma
1 parent 012fb40 commit 8001e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/ispcmail.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ public function send($recipients) {
823823
$recipname = trim(str_replace('"', '', $recipname));
824824

825825
if($rec_string != '') $rec_string .= ', ';
826-
if($recipname && !is_numeric($recipname)) $rec_string .= $recipname . '<' . $recip . '>';
826+
if($recipname && !is_numeric($recipname)) $rec_string .= '"' . $recipname . '"<' . $recip . '>';
827827
else $rec_string .= $recip;
828828
}
829829
$to = $this->_encodeHeader($rec_string, $this->mail_charset);

0 commit comments

Comments
 (0)