if ($row_rsMaintenanceNotif['estimatedMinutes'] != 1) { $txtbody .= "s"; } $txtbody .= " "; } $txtbody .= "<br />"; $txtbody .= "Reason: " . $row_rsMaintenanceNotif['reason'] . "<br />"; $txtbody .= "Customer Impact: " . $row_rsMaintenanceNotif['customerImpact'] . "<br />"; $txtbody .= "NOC Impact: " . $row_rsMaintenanceNotif['nocImpact'] . "<br />"; $txtbody .= "Engineer: " . $row_rsMaintenanceNotif['displayName'] . "<br />"; $txtbody .= "Production Changes:<br />"; $txtbody .= nl2br($row_rsMaintenanceNotif['prodChanges']) . "<br />"; $txtbody .= "*********************"; $subject = "Maintenance Notification (Internal): " . $row_rsMaintenanceNotif['reason']; $email->set_subject($subject); $email->set_body($body); $email->set_alt_body($txtbody); if (!$email->send()) { ?> <div class='alert alert-danger' role='alert'> <strong>Error!</strong> This Maintenance Notification could not be sent successfully. Please check the errors below or contact El Chapulin Colorado.<br /> <strong>Mailer Error:</strong> <?php echo $email->get_error(); ?> </div> <?php exit; } ?> <div class="alert alert-success" role="alert"> <strong>Success!</strong> Maintenance Notification sent successfully!