选择语言 :

 Core_Email::bcc

Set BCC

Email Core_Email::bcc( string $bcc [, string $limit = empty ] )

参数列表

参数 类型 描述 默认值
$bcc string
$limit string empty
返回值
  • Email
File: ./core/classes/email.class.php
public function bcc($bcc, $limit = '')
{
    if ($limit !== '' && is_numeric($limit))
    {
        $this->bcc_batch_mode = true;
        $this->bcc_batch_size = $limit;
    }

    $bcc = $this->clean_email($this->_str_to_array($bcc));

    if ($this->validate)
    {
        $this->validate_email($bcc);
    }

    if ($this->_get_protocol() === 'smtp' || ($this->bcc_batch_mode && count($bcc) > $this->bcc_batch_size))
    {
        $this->_bcc_array = $bcc;
    }
    else
    {
        $this->set_header('Bcc', implode(', ', $bcc));
    }

    return $this;
}