I think, i have found a way to get what i need. But now i get the following error message "PHP Fatal error: Uncaught Error: Call to undefined function rcmail_filetype2classname()
" when i use:
$rcmail->output->command('add2attachment_list', "rcmfile$id", array(
'html' => $content,
'name' => $attachment['name'],
'mimetype' => $attachment['mimetype'],
'classname' => rcmail_filetype2classname($attachment['mimetype'], $attachment['name']),
'complete' => true), $uploadid);
Do i have to include some file before?
Additionally i get the same error for rc_mime_content_type($filepath, basename($filepath))