Assign file attachments
Email Core_Email::attach( string $filename [, $disposition = empty , $newname = null , $mime = empty ] )
参数列表
参数 类型 描述 默认值 $filenamestring$dispositionunknownempty $newnameunknownnull $mimeunknownempty
Email public function attach($filename, $disposition = '', $newname = null, $mime = '')
{
$this->_attach_name[] = array($filename, $newname);
$this->_attach_disp[] = empty($disposition) ? 'attachment' : $disposition; // Can also be 'inline' Not sure if it matters
$this->_attach_type[] = $mime;
return $this;
}