if ($stream) {
$this->preWriteToStream($header);
$this->writeToStream($stream, $header);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($header);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
$this->writeBody($message, $stream, $raw_length, $boundary);
return $raw_length;
if ($stream) {
$this->preWriteToStream($s);
$this->writeToStream($stream, $s);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($s);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
}
$this->writeBodyPart($message, $stream, $length_raw);
if ($stream) {
$this->preWriteToStream($s);
$this->writeToStream($stream, $s);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($s);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
}
}
if ($stream) {
$this->preWriteToStream($body_part);
$this->writeToStream($stream, $body_part);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($tmp);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
} elseif ($message->att_local_name) {
$filename = $message->att_local_name;
if ($stream) {
$this->preWriteToStream($tmp);
$this->writeToStream($stream, $tmp);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($tmp);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
}
fclose($file);
$length += $this->clean_crlf($body_part);
if ($stream) {
$this->writeToStream($stream, $body_part);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($body_part);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
} elseif ($message->att_local_name) {
$filename = $message->att_local_name;
if ($stream) {
$this->writeToStream($stream, $encoded);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($encoded);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
}
fclose($file);
if ($stream) {
$this->preWriteToStream($body_part_trailing);
$this->writeToStream($stream, $body_part_trailing);
- } else {
- /* DEBUG */
- $out = htmlspecialchars($body_part_trailing);
- $out = str_replace("\r\n",'<BR>',$out);
- echo $out;
}
}
return $stream;
}
- function getBcc($bcc) {
+ function getBcc() {
return false;
}