Display BCC field in sent mail.

This commit is contained in:
RainLoop Team 2013-12-09 14:38:13 +04:00
parent 4a153a59c1
commit f7106f375c
5 changed files with 114 additions and 17 deletions

View file

@ -579,11 +579,28 @@ class Part
return $this;
}
/**
* @return resorce
*/
public function Rewind()
{
if ($this->Body && \is_resource($this->Body))
{
$aMeta = \stream_get_meta_data($this->Body);
if (isset($aMeta['seekable']) && $aMeta['seekable'])
{
\rewind($this->Body);
}
}
}
/**
* @return resorce
*/
public function ToStream()
{
$this->Rewind();
$aSubStreams = array(
$this->Headers->ToEncodedString().