Minor fix to cron_SendMail

mdsupport wrote on Thursday, February 14, 2013:

I am not sure if anyone uses the cron_SendMail functionality but sharing a minor tweak that does following :

1. If the message body is of type html, Google and many other email client show the message as attachment.  This patch fixes that issue.
2. The ***DATE*** and ***TIME*** variables are fixed to be more meaningful to the patients rather than MySQL/php default formats.

This file contains several original comments that should not be part of any production code.  We are not sure if unrelated code cleanup is accepted or not - so leaving it alone.

bradymiller wrote on Saturday, February 16, 2013:

Hi,

Thanks for the code contribution(and feel free to clean up code/comments). These changes seem very benign and appear to fix a bug. If nobody has any objections to the above code linked above, then I’ll bring it over to the official codebase.

-brady
OpenEMR

bradymiller wrote on Sunday, February 17, 2013:

Hi,
Just committed this to sourceforge. thanks for the contribution,
-brady
OpenEMR