Mail: ezcMailVirtualFile
[ ]
[ Display-example ] [ Mail-listing-example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailVirtualFile
|
Mail part for binary data in memory. [
source]
Parents
ezcMailPart
|
--ezcMailFilePart
|
--ezcMailVirtualFile
Inherited Constants
From
ezcMailFilePart:
Properties
|
string |
read/write
|
$contents
The contents to be added as an attachment. The mimeType and contentType are set in the constructor or if not specified they are extracted with the fileinfo extension if it is available, otherwise they are set to application/octet-stream. |
Inherited Member Variables
From
ezcMailFilePart:
Method Summary
|
public ezcMailVirtualFile |
__construct(
$fileName, $contents, [$contentType = null], [$mimeType = null] )
Constructs a new attachment with $fileName and $contents. |
|
public string |
generateBody(
)
Returns the contents of the file with the correct encoding. |
Inherited Methods
From
ezcMailFilePart :
From
ezcMailPart :
Methods
__construct
ezcMailVirtualFile __construct(
string
$fileName, string
$contents, [string
$contentType = null], [string
$mimeType = null] )
Constructs a new attachment with $fileName and $contents.
If the $mimeType and $contentType are not specified they are extracted with the fileinfo extension if it is available, otherwise they are set to application/octet-stream.
Parameters
| Name |
Type |
Description |
$fileName |
string |
|
$contents |
string |
|
$contentType |
string |
|
$mimeType |
string |
|
Redefinition of
generateBody
string generateBody(
)
Returns the contents of the file with the correct encoding.
Redefinition of
Last updated: Mon, 12 Nov 2007