string addAttachment(
string
$data, [string
$filename = ''], [string
$contenttype = 'application/octet-stream'], [string
$cid = false])
|
|
adds a MIME attachment to the current response.
If the $data parameter contains an empty string, this method will read the contents of the file named by the $filename parameter.
If the $cid parameter is false, this method will generate the cid.
Tags:
Parameters:
gets the MIME attachments from the current request.
Each array element in the return is an associative array with keys data, filename, contenttype, cid. These keys correspond to the parameters for addAttachment.
Tags: