I'm looking for a variable set with the filename in the ["Headers"] array that I can key off of. I'm not saving the files to disk, so this is why I need a var set. I've been using the content-id var for the file name. Could you please show me how to set this var?
My usage:
$mime->use_part_file_names = 1;
$parameters=array(
'Data'=>$msg,
/* Read a message from a string instead of a file */
/* 'Data'=>'My message data string', */
/* Save the message body parts to a directory */
/* 'SaveBody'=>'/tmp', */
/* Do not retrieve or save message body parts */
'SkipBody'=>0,
);
Output:
["BodyPart"]=>
int(2)
["BodyLength"]=>
int(458)
}
[1]=>
array(6) {
["Headers"]=>
array(3) {
["content-type:"]=>
string(10) "image/jpeg"
["content-transfer-encoding:"]=>
string(6) "base64"
["content-id:"]=>
string(39) "<
[email protected]>"
NEEDED *****************************
["filename:"]=>
string(16) "the-filename.ext"
*************************************
}
["Parts"]=>
array(0) {
}
["Position"]=>
int(2367)
["Body"]=>
string(8704)(...blob...)