Previously emails sent from openemr through mercury smtp used to fail. The batch Email script was modified by ZH Healthcare on my system. Thanks to ZH Healthcare. Emails work fine with this scripts. I can now send prescriptions, patient reminders, batchcom reminders, automatic appointment reminders through cron jobs via mercury.
Please review tthe code…