Suggestion for E-Mails

arnabnaha wrote on Tuesday, November 18, 2014:

Hi all
I am on windows 8, running openemr 4.1.3 for years…This is just a question which was creeping in my mind…Currently I use Mercury Mail to send E-Mails via Openemr, Is there any other direct way of sending mail from openemr itself? I mean without Mercury mail? Please give suggestion for windows…

fsgl wrote on Tuesday, November 18, 2014:

If you don’t mind paying for SMS, see this.

mdsupport wrote on Thursday, November 27, 2014:

  1. You do not need any local mail server to send messages. You need smtp client which you can install without server. Just use smtp server provided by your isp / hosting service or smtp.gmail.com with a valid gmail address.
  2. You do not need any local mail server to receive messages. You need pop/imap client which can be installed without server.

By using mercury or other servers locally, you are able to send messages to other mailboxes in your office without needing internet connection. If you are not doing that, you are just using mercury for local logging / storage of sent mail.

jackfruit501 wrote on Thursday, November 27, 2014:

If you do not want to pay, Viber for desktop may be an option for messaging.

www.viber.com/desktop

Jack

arnabnaha wrote on Friday, November 28, 2014:

Hi MD Support…
Can you please explain how and where to put the smtp.gmail.com in the code? Please explain the process a bit so that I can remove the mercury mail totally from using and send email from script or directly from openemr.

mdsupport wrote on Sunday, November 30, 2014:

Do not remove anything until you get new settings working to your requirements. Note down the current settings before you try the following settings for gmail based smtp:

Email Transport Method : smtp
SMTP Server Hostname : smtp.gmail.com
SMTP Server Port Number : 465
SMTP User for Authentication : gmail login
SMTP Password for Authentication : gmail password

  • If you have Google Apps account, you will use login with the domain name (e.g. some_user_account@some_domain.com).

To test :

  1. Set up an appointment or any condition that results in emr notification.
  2. Run the cron job to emit notification
  3. Log on to gmail account
  4. Review the message in sent mail

With gmail or any such authenticated smtp hosted send process, it is good practice to direct any responses to another mailbox. Irrespective of any disclaimers, warnings etc., patients love to hit the ‘Reply’ button and write valid emails.

For US practices use of gmail has HIPAA implications. Appointment reminders are OK but notifications about availability of specific lab results are not.

arnabnaha wrote on Monday, December 08, 2014:

hi…MD Support

Sorry for being late in replying…

can you please tell me the php file name and location, where to put these above mentioned values in? it would be of great help.

mdsupport wrote on Monday, December 08, 2014:

Admin -> Globals -> Communications(?)

arnabnaha wrote on Monday, December 08, 2014:

yup, I have put the credentials as you said in Admin-Globals-Notifications and tried to send patient reminders but it didnot transmit the messages

mdsupport wrote on Thursday, December 11, 2014:

Not sure where the error logs get written by openemr/library/classes/smtp/smtp.php. But chances are you may be missing one or more packages relied by php - e.g. openssl which gmail will need but not Mercury or a local mail server. Will have to check where the logs get recorded - did you check php, webserver or windows events?

robertovasquez wrote on Sunday, June 07, 2015:

Hi Arnab
Did you get notifications to work with SMTP gmail? It is not working for me.

arnabnaha wrote on Sunday, June 07, 2015:

Hello Roberto…

Yes, the SMTP mail function works flawlessly in my system and even the automatic mail notification system.

You have to setup the Mercury Mail for Windows. If you are using XAMPP, Mercury mail is already there and need to configure it only.

Take a look at how to configure mercury for windows - http://openemr.sourceforge.net/wiki/index.php/Mercury_Mail_Configuration_in_Windows

robertovasquez wrote on Sunday, June 07, 2015:

Thanks Arnab. I’m on the Linux side. I’ll keep looking.

mdsupport wrote on Monday, June 08, 2015:

Setup is lot easier on Linux. If messages are not being sent, you probably has a some system package missing. PHP and system logs should give you a clue.

robertovasquez wrote on Monday, June 08, 2015:

Thanks MD Support
I have installed openssl, and I m able to sed emails from terminal command line.
I m ussing smtp.gmail.com and port number 587, I tried 467 also
When a click “Reset Onsite Portal Credentials”

This the error :
SMTP Error: Could not authenticate. Patient Portal Web Address:
http://107.185.162.138/openemr/patients

User Name: Roberto2
Password: xxxxxxx

From the log I have this:
Mon Jun 08 15:14:28 2015] [error] [client ::1] EMAIL ERROR: SMTP Error: Could not authenticate., referer: http://localhost/openemr/interface/patient_file/summary/create_portallogin.php?portalsite=on&patient=2

Please advice

robertovasquez wrote on Tuesday, June 09, 2015:

Hi MD Support
Seems to me that openemr is the one that give me the error message. please see attachment

mdsupport wrote on Tuesday, June 09, 2015:

Appointment reminders are cron jobs. This is something else. You will need to describe the process - why is it giving portal address in the error message?

mabutler573 wrote on Tuesday, June 09, 2015:

If I remember right, gmail requires SSL, and we don’t have a global to turn that on. Try adding

$this->SMTPSecure = "ssl";

to line 50 of library/classes/postmaster.php (inside the bracket).

You’re seeing this on the reset credentials page, because OEMR will send the new password to the patient’s email if it can.

robertovasquez wrote on Tuesday, June 09, 2015:

THANKS Matt
It WORKS !!!

Gmail sent after Reset Onsite Portal Credentials cliked