Please help me set up the email reminder for patients. I just cant do it even after reading this http://www.openmedsoftware.org/wiki/Sms_and_Email_Notification_Howtos. so please help me out with this in details and step by step manner. I am using Gmail to send mails. So i can’t understand what port to use, what should be my outgoing server host name, etc……please help me!!!
You need to provide details about your platform, SSL setup and current state of implementation - e.g. can you send emails at the operating system level? If you are, then the wiki instructions are easy to guide you through.
Be aware that OEMR is just another application using messaging services provided through the operating system.
thanks for the reply…
i am using windows vista ultimate SP2. i can send mail from my windows platform by using microsoft outlook which is integrated with my Gmail account. i dont have any ssl setup. please help me with that.
I am assuming you are using 3.2 or 4.0 version of OpenEMR. I have no experience with PHP & mail on Windows platform. But I will try:
1. Add the following to <openemr web root directory>\interface\global.php file:
$GLOBALS = smtp.google.com // email outgoing server host/ip
$GLOBALS = 485 // email outgoing server port (use 587 if ssl is set to off next)
$GLOBALS = true // if to use ssl
$GLOBALS = xxx.ddd.com // your local host name used to send email
$GLOBALS = uuu@gmail.com // outgoing server user
$GLOBALS = ppppppp // Hope no one sees this
2. In the task scheduler, set up a job to run the unattended mailer with a frequency you need (my guess for the command) :
<php install directory>php.exe <openemr web root directory>\modules\sms_email_reminder\cron_email_notification.php
3. I have never found the Admin.Notification form. But it is easy to access the “automatic_notification” table record where the message template is stored. Use Administration -> Other -> Database menu to get the phpadmin menu to modify the database records. You want to update the record nbr 2 - specially the message body that is set to ‘Welcome to EMR GROUP . Email’. This should be replaced by your message to the patients. This message body can be personalized with 3-4 tokens that get replaced by the patient and appointment data -
a. ***NAME*** : Name of the patient
b. ***PROVIDER*** : Name of the doctor
c. ***DATE*** : Date of the appointment
d. ***STARTTIME***, ***ENDTTIME*** : Times of the appointment
Although the replacement does not work with the subject line, it is fairly easy change to force it to do so.
You may also have to comment out the line 32 in cron_functions.php file if the message shows up as an attachment in the email.
Hope it helps. As I stated earlier, you may need help from PHP+Windows+SMTP users if the underlying mail transport is not working correctly from your PHP engine.
On the Linux platform, if smtp_host_name is not set in global.php file, the script passes the message to standard mail transport. Not sure how that works in Windows.
Once you get the Windows setup working, please post the correct sequence for others.