How do i actually send an email to my client from within openemr?

How do i actually send an email to my client from within openemr, after i have configured the smtp port no etc.
where is the TO: , message etc.

I have some questions before I can answer your question.

Do you have an SMTP account or service provider or server of your own (the last one not recommended)?

Do you have SMTP information filled out in the Admin Config Notifications part of the system?

To my knowledge, there is not a way to email the patient from within the system. No one has built that interface. You will have to have that feature/module built.
I learned a new term this past week. It is called patient engagement. It is becoming increasingly important to be able to engage the patient from within the EHR. Being able to send emails out to the patient that originated from within the EHR is not a current feature in the codebase as of right now.

It would be nice if some of the professional support providers that have built some of these tools submit a light version of the tool to the codebase.

yes i have the smtp account configured ino openemr.
What what i fail to understand is what are those settings for? how do we use the email service from within openemr?

Go to admin miscellaneous batch communications. The tool to use them is there.

ok thanks, this i missed altogether… will check out.

Could not send email due to a server problem. 11 emails not sent

below are my notification settings…

changed the setting to tls also still same error.
changed username to ‘without’ also still same error.

any help pl.

have used sendgrid and aws ses successfully for sending emails via SMTP (for development/testing purposes). Note you need to go through a third party SMTP service (ie. pretty sure you can’t have it go through a personal google account name/pass).
as an example, the aws ses settings i use are:
Sender name: OpenEMR (this can be anything)
Sender email: (the aws ses account i use has validated that domain name)
Notification email: my email address (this is where emails go to when it needs to send messages to the admin)
Email method: SMTP
server hostname: (note this is dependent on the region of your aws ses service)
port number : 587
protocol: TLS
user auth: credential for aws ses
pass auth: credential for aws ses

gmail actually is not working.
I have a domain name and have hosted openemr there.
i tried tht also its not going, says server error.
but when i open my email the emails are created but not sent.
still the error is same

Could not send email due to a server problem. 12 emails not sent

some time ago Google made changes to their security protocol for SMTP and was no longer allowed to just plug in credentials and it work. You have to set up the app and they no longer allow lesser secure apps. If you insist on using Google I suggest you follow their instructions.

Here is a third-party instruction on how to use Google SMTP.

I am with @Brady. I use sendgrid. Here is a little tool I created to help me test my SMTP connection. Drop this file into the interface folder and access it from the browser HTTP://localhost/interface/testmail.php. It will show you what is happening with your SMTP connection and then you will a better chance of fixing it.

testmail.php (1.6 KB)

1 Like

after using testmail.php my head is spinning. :joy:

there’s a recently updated wiki that goes over google workspace and gmail setup

Hello, for a few months I have been using (now It works great with appointment reminders. Free works with 300 emails per day.
Port: 587
Security: None

1 Like

I think I’ll give this a try

1 Like

Its not working with openemr.

And can we email a single patient?

Yes, the patient portal already does this for portal credentials and resetting credentials etc.

1 Like

I have followed the steps that you describe to setting up email on admin | globals | notifications. I have setup patient demographics | choices | allow mail message and allow email. I have setup patient email as demographics | contact | contact email.
Then I went to message center, create a dated reminder, I send it to this patient, add a copy to myself (admin), add a due date, no time span, high priority and a custom message (regards from OpenEMR). A pop up message shows as “Reminder Sent”, I clicked on OK.

But no email has arrived to my patient mailbox, or admin mailbox (don´t know how to add admin´s email).

Thanks in advance

Hi Marco, It’s been awhile.
I don’t recall that Patient notes(Messages) allows sending email except if you’re using Direct(@adunsulag put in v7.0.0 but it may only be for sending CCDA’s) and Direct is a pain for patient emails.
However during my recent endeavor into sending portal onetime notifications via SMS and Email I developed an Email client for my faxsms module that supports creating events for sending emails to patients. The module can be turned on separate from fax and SMS.

All that is needed is to put an event in Messages. The support is there if either I get around to doing it or someone else wants to leverage to capability.

The contact form will look similar to below where if SMS is enabled then message can be sent via SMS, email or both.

I have done the following:
Sender name: Clinic name
Sender email: email verified in SES.
Notification email: email verified in SES.
Email method: SMTP
server hostname:
port: 587
protocol: TLS
user auth: access key created from SES (manage my existing SMTP credentials, it took me to IAM and there I created an access key and stored its password.
pass auth: password generated.

When I tried to send a patient resetted credentials from OpenEMR using admin user, I got a report that says “Portal Credential Information, Email was not sent to the following address:”

Then I tried to reset my credentials as a patient through portal (I have added reCaptcha v2 (Patient Port Google reCAPTCHA V2 site key), and I got an error that email can´t be sent.

I then look to Admin | System | Logs I found this logged message "Patient password reset failure: The reset email to for pid 1 was not successful because of following issue: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1:
SMTP code: 554 "

It is trying to use patient´s email instead of sender email.

Update: I change my patients email to one verified identity email in Amazon SES, then I got my reset email.
I have to set contact email and trusted email to my verified identity to be able to receive my reset credentials email.

Any advice?

Need to be the same email address. that is a likely problem noted in
SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. error.

Otherwise I don’t know.