# Sending messages to Patient Portal with attachments

**URL:** <https://community.open-emr.org/t/sending-messages-to-patient-portal-with-attachments/14082>\
**Category:** Management and Administration\
**Created:** [March 27, 2020, 11:21am UTC](https://community.open-emr.org/t/sending-messages-to-patient-portal-with-attachments/14082 "2020-03-27T11:21:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RachelEllison](https://community.open-emr.org/user_avatar/community.open-emr.org/rachelellison/32/14041_2.png) [@RachelEllison](https://community.open-emr.org/u/RachelEllison)\
**Post date:** [March 27, 2020, 7:38pm UTC](https://community.open-emr.org/t/sending-messages-to-patient-portal-with-attachments/14082/2 "2020-03-27T19:38:14Z")

</div>

Hi Vitaly,

There is a messenger in the patient portal. I describe the table in which the messages live here:

> [@Project - Hybrid App with Image Processing](https://community.open-emr.org/t/project-hybrid-app-with-image-processing/13758/32):
>
> There’s also the ability for patients to send messages to their providers through the patient portal. When a patient sends a message there are two copies stored in the database. A copy for the clinician and a copy for the patient. That way they each can delete, archive, etc. their copy. This is table onsite\_mail

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.

---

_[View the full topic](https://community.open-emr.org/t/sending-messages-to-patient-portal-with-attachments/14082)._
