Hi Vitaly,
There is a messenger in the patient portal. I describe the table in which the messages live here:
It doesn’t appear that the table is able to store a reference to attachments in the patient directory.
However I believe patient documents are stored in the directory:
openemr/sites/default/documents/x/filename.pdf
or
\openemr\sites\default\documents\onsite_portal_documents
where x is the patient’s pid, e.g 6.
So in theory if you add a column or two to the table that give you the location of a file and it’s file name you could use that to pull up the attachment from its location.
@sjpadgett would know much more about the portal messenger than me.