Permalink
Browse files

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.
  • Loading branch information...
1 parent 27bcb1b commit 3f1ee4902cea218ada641e3c97efca4020931b09 mdsupport committed with bradymiller Feb 14, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 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);

0 comments on commit 3f1ee49

Please sign in to comment.