Email Dysfunction from Cronjob and Batch Com

arnabnaha wrote on Wednesday, September 17, 2014:

Hii…
was testing out the email function of the cronjob and the batch com. My Mercury mail is absolutely perfect as i can successfully send email from the patient reminders to the email addresses of the patient through mercury mail. when it comes to cronjob, the cronjob works well and identifies that there is an appointment in the next 24 hours but it fails to send any mail to the patient through mercury mail. same is the fact with batchcom.

in the cronjoblog, it shows that mail was sent successfully but no mail actually appeared in the inbox or the spam folder too.

can anybody throw some light on it?

arnabnaha wrote on Wednesday, September 17, 2014:

I am on windows 8.1, few months back too, the functionality was absolutely fine. My xampp is 1.8.2 and Mercury mail version is 4.74

arnabnaha wrote on Thursday, September 18, 2014:

Plz help in this…this feature is required…it cant go away like this…plz help

mdsupport wrote on Friday, September 19, 2014:

Although we do not use /module/xxx code anymore, the only issue we had was html code showing up as attachment. Some suggestions in your case:

  1. Check if there is a working non-OpenEMR php code that sends emails.
  2. Check multiple smtp servers - best to test on one of many simple smtp servers for sending sending messages between internal hosts.
  3. Probably unrelated but look one of our commits here.

Sorry for your troubles.

arnabnaha wrote on Friday, September 19, 2014:

Thanks MD Support…
Can you please elaborate the 2nd point…i dont know how to do it…
Regarding other php script…i will try out and post it here…
The cron thing was working fine even after the attachment fix by you…i must say it got better. Suddenly it stopped working…dont know why!

arnabnaha wrote on Friday, September 19, 2014:

Hi…
Just tested sending mail from a php script ther than openemr. It doesnt send it…there is big problem somewhere…but it sends the emails from the patient reminder tab when i click the process and send reminder button…what is happening??

arnabnaha wrote on Friday, September 19, 2014:

A great NEWS…JUST SOLVED THE ISSUE…I DID A MISTAKE IN MY PHP.INI FILE THAT IS WHY IT WAS NOT SENDING MAILS…

A GREAT RELIEF…