if ($my_post['prodOps'] == 'y') { $email->AddAddress("*****@*****.**", "Tech Support"); } if ($my_post['noc'] == 'y') { $email->AddAddress("*****@*****.**", "Product Dev"); } if ($my_post['neteng'] == 'y') { $email->AddAddress("*****@*****.**", "Sales"); } if ($my_post['syseng'] == 'y') { $email->AddAddress("*****@*****.**", "Projects"); } if (isset($my_post['cc']) && $my_post['cc'] != null) { $email->AddAddress("" . $my_post['cc'] . "", "cc"); } $email->AddReplyTo("*****@*****.**", "Maintenance Notifications"); $body = "*********************<br />"; $body .= "<b>Start Date:</b> " . $row_rsMaintenanceNotif['startDate'] . "<br />"; $body .= "<b>Start Time:</b> " . $row_rsMaintenanceNotif['startTime'] . " EST<br />"; $body .= "<b>Estimated Duration:</b> "; if ($row_rsMaintenanceNotif['estimatedHours'] > 0) { $body .= $row_rsMaintenanceNotif['estimatedHours'] . " hour"; if ($row_rsMaintenanceNotif['estimatedHours'] != 01 || $row_rsMaintenanceNotif['estimatedHours'] != 1) { $body .= "s"; } $body .= " "; } if ($row_rsMaintenanceNotif['estimatedMinutes'] > 0) { $body .= $row_rsMaintenanceNotif['estimatedMinutes'] . " minute"; if ($row_rsMaintenanceNotif['estimatedMinutes'] != 1) { $body .= "s";