}
$header[] = "Date: $date" . $rn;
$header[] = 'Subject: '.encodeHeader($rfc822_header->subject) . $rn;
- $header[] = 'From: '. $rfc822_header->getAddr_s('from',", \r\n",true) . $rn;
+ $header[] = 'From: '. $rfc822_header->getAddr_s('from',',',true) . $rn;
/* RFC2822 if from contains more then 1 address */
if (count($rfc822_header->from) > 1) {
- $header[] = 'Sender: '. $rfc822_header->getAddr_s('sender',", \r\n",true) . $rn;
+ $header[] = 'Sender: '. $rfc822_header->getAddr_s('sender',',',true) . $rn;
}
if (count($rfc822_header->to)) {
- $header[] = 'To: '. $rfc822_header->getAddr_s('to',", \r\n",true) . $rn;
+ $header[] = 'To: '. $rfc822_header->getAddr_s('to',',',true) . $rn;
}
if (count($rfc822_header->cc)) {
- $header[] = 'Cc: '. $rfc822_header->getAddr_s('cc',", \r\n",true) . $rn;
+ $header[] = 'Cc: '. $rfc822_header->getAddr_s('cc',',',true) . $rn;
}
if (count($rfc822_header->reply_to)) {
- $header[] = 'Reply-To: '. $rfc822_header->getAddr_s('reply_to',", \r\n",true) . $rn;
+ $header[] = 'Reply-To: '. $rfc822_header->getAddr_s('reply_to',',',true) . $rn;
}
/* Sendmail should return true. Default = false */
$bcc = $this->getBcc();
if (count($rfc822_header->bcc)) {
- $s = 'Bcc: '. $rfc822_header->getAddr_s('bcc',", \r\n",true) . $rn;
+ $s = 'Bcc: '. $rfc822_header->getAddr_s('bcc',',',true) . $rn;
if (!$bcc) {
- // $s = $this->foldLine($s, 78, str_pad('',4));
+ $s = $this->foldLine($s, 78, str_pad('',4));
$raw_length += strlen($s);
} else {
$header[] = $s;
{
case 'Message-ID':
case 'In-Reply_To':
- case 'To':
- case 'Cc':
- case 'Bcc':
- case 'From':
- case 'Sender':
- case 'Reply-To':
$hdr_s .= $header[$i];
break;
case 'References':