Public Member Functions | |
__construct ($filename, $contentType= 'application/octet-stream', $encoding=null) | |
Constructor. |
Definition at line 917 of file Rmail.php.
fileAttachment::__construct | ( | $ | filename, | |
$ | contentType = 'application/octet-stream' , |
|||
$ | encoding = null | |||
) |
Constructor.
string | $filename Name of file | |
string | $contentType Content type of file | |
string | $encoding What encoding to use |
Definition at line 926 of file Rmail.php.
References attachment::$contentType, and attachment::$encoding.
00927 { 00928 $encoding = is_null($encoding) ? new Base64Encoding() : $encoding; 00929 00930 parent::__construct(file_get_contents($filename), basename($filename), $contentType, $encoding); 00931 }