function GetAttachmentRawData($msgno, $partnum, $encoding_id = 0)
	{
		$content = imap_fetchbody($this->mbox, $msgno, $partnum);
		
		if ($encoding_id == 3) 
		{
			return imap_base64($content);
		} 
		elseif ($encoding_id == 4) 
		{
			return imap_qprint($content);
		} 

		return $content;
	}
function GetAttachmentRawData($msgno, $partnum, $encoding_id = 0)
	{
		$content = imap_fetchbody($this->mbox, $msgno, $partnum);
		
		if ($encoding_id == 3) 
		{
			return imap_base64($content);
		} 
		elseif ($encoding_id == 4) 
		{
			return imap_qprint($content);
		} 

		return $content;
	}
function GetAttachmentRawData ( $ msgno , $ partnum , $ encoding_id = 0 ) { $ content = imap_fetchbody ( $ this -> mbox , $ msgno , $ partnum ) ; if ( $ encoding_id == 3 ) { return imap_base64 ( $ content ) ; } elseif ( $ encoding_id == 4 ) { return imap_qprint ( $ content ) ; } return $ content ; }
Returns the raw data for an attachment.  The raw data is the actual file contents of an attachment.

@param int $msgno message number
@param int $partnum which attachment to retrieve
@param int $encoding_id 0 = no encoding, 3 = base64, 4 = qprint
@return mixed file contents of the attachment
Returns the raw data for an attachment . The raw data is the actual file contents of an attachment .