BMS Unit: ".$unitname."
Type of Alert: ".$alertname."
Start Date / Time: ".$start_date_time."
End Date / Time: ".$end_date_time."
Description: ".$description_for_email."
Updated by: ".$user."
Event Link: https://DOMAIN.com/bms/viewevent.php?eventid=$event_id

This message generated by https://DOMAIN.com/bms "; //WordWrap the message $message_wrapped = wordwrap($message, 70, "\n", true); //Send the email mail($to,$subject,$message_wrapped,$headers); } else{ echo('Error! Please go back and try again'); } $conn->close(); ?>