From: mdsupport Date: Thu, 14 Feb 2013 02:29:25 +0000 (-0800) Subject: 1-Fix the problem with html body showing up as attachment X-Git-Tag: whats-been-changed~403 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/3f1ee4902cea218ada641e3c97efca4020931b09 1-Fix the problem with html body showing up as attachment 2-Change date format in message to show the day of the week. 3-Change time format in message to not show seconds. --- diff --git a/modules/sms_email_reminder/cron_functions.php b/modules/sms_email_reminder/cron_functions.php index 6a2a32de7..82bed3e6d 100644 --- a/modules/sms_email_reminder/cron_functions.php +++ b/modules/sms_email_reminder/cron_functions.php @@ -29,7 +29,7 @@ function cron_SendMail( $to, $subject, $vBody, $from ) // larry :: add cc/bcc - bot used ? $cc = ""; $bcc = ""; - $format = 0; + $format = ""; // mdsupport - replaces 0 which causes gmail formatting / display problems. //echo "function called";exit; if( strlen( $format )==0 ) $format="text/html"; @@ -327,8 +327,9 @@ function cron_setmessage($prow,$db_email_msg) //echo "DEBUG :1: name=".$NAME."\n"; $PROVIDER = $db_email_msg['provider_name']; - $DATE = $prow['pc_eventDate']; - $STARTTIME = $prow['pc_startTime']; + $dtWrk = strtotime($prow['pc_eventDate'].' '.$prow['pc_startTime']); + $DATE = date('l F j, Y', $dtWrk); + $STARTTIME = date('g:i A', $dtWrk); $ENDTIME = $prow['pc_endTime']; $find_array = array("***NAME***","***PROVIDER***","***DATE***","***STARTTIME***","***ENDTIME***"); $replare_array = array($NAME,$PROVIDER,$DATE,$STARTTIME,$ENDTIME);