<?php
require_once("/home/fundbridge/crons.ballng.com/db.php");
require_once("/home/fundbridge/crons.ballng.com/email.php");

$users = mysqli_query($conn, "select email,fname,lname from users order by id asc");

while($user = mysqli_fetch_assoc($users)){
    $fname = $user['fname'];
    $message = "<h4>Dear $fname,</h4><p>We would like to inform you that FundsBridge mobile App and web version will be temporarily unavailable on Sunday March 19, 2023 from 10PM to 5AM, Monday March 20, 2023 due to routine maintenance work.</p> <p>During this time, you will not be able to access the platform or use any of its features. We understand that this may cause some inconvenience and we apologize for any disruption this may cause you. This maintenance work is essential to ensure the continued smooth operation of FundsBridge and to ensure that we can continue to offer you the best possible service.</p><p>We appreciate your patience and understanding and thank you for choosing FundsBridge.</p><br /><p>Best regards,<br /> The FundsBridge Team.</p>";
    //send($user["fname"]." ".$user["lname"],$user["email"], "notification",array("message"=>$message,"subject"=> "Scheduled Maintenance Notice"));
}

?>