Assign file attachments
Email Core_Email::attach( string $filename [, $disposition = empty , $newname = null , $mime = empty ] )
参数列表
参数 类型 描述 默认值 $filename
string
$disposition
unknown
empty $newname
unknown
null $mime
unknown
empty
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;
}