Attach file to email
Here's the answer, which is just an extension on the comment from @berramou

$file = file_load($fid);
  $message["params"]["attachments"][] =[
    'filepath' =&gt; $file-&gt;getFileUri(),
    'filemime' =&gt; '' // argument must be present, but can remain empty
  ];
}