diff --git a/cron_mail_queue.php b/cron_mail_queue.php index 23bcad00..fd6782a1 100644 --- a/cron_mail_queue.php +++ b/cron_mail_queue.php @@ -61,7 +61,7 @@ file_put_contents($lock_file_path, "Locked"); // Get Mail Queue that has status of Queued and send it to the function sendSingleEmail() located in functions.php -$sql_queue = mysqli_query($mysqli, "SELECT * FROM email_queue WHERE email_status = 0 AND email_queued_at <= NOW()"); +$sql_queue = mysqli_query($mysqli, "SELECT * FROM email_queue WHERE email_status = 0"); if (mysqli_num_rows($sql_queue) > 0) { while ($row = mysqli_fetch_array($sql_queue)) { diff --git a/post/ticket.php b/post/ticket.php index eb504ee1..955b42aa 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -1542,7 +1542,7 @@ if (isset($_POST['edit_ticket_schedule'])) { 'recipient_name' => $contact_name, 'subject' => "Ticket Scheduled - [$ticket_prefix$ticket_number] - $ticket_subject", 'body' => "Hello, $contact_name

Your ticket regarding $ticket_subject has been scheduled for $schedule.

--------------------------------
$ticket_link
--------------------------------

Please do not reply to this email.

Ticket: $ticket_prefix$ticket_number
Subject: $ticket_subject
Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id

~
$session_company_name
Support Department
$config_ticket_from_email
$company_phone", - 'cal_str' => $cal_str, + 'cal_str' => $cal_str ], [ 'from' => $config_ticket_from_email, @@ -1551,7 +1551,7 @@ if (isset($_POST['edit_ticket_schedule'])) { 'recipient_name' => $row['user_first_name'] . ' ' . $row['user_last_name'], 'subject' => "Ticket Scheduled - [$ticket_prefix$ticket_number] - $ticket_subject", 'body' => "Hello, " . $row['user_first_name'] . "

The ticket regarding $ticket_subject has been scheduled for $schedule.

--------------------------------
$ticket_link
--------------------------------

Please do not reply to this email.

Ticket: $ticket_prefix$ticket_number
Subject: $ticket_subject
Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id

~
$session_company_name
Support Department
$config_ticket_from_email
$company_phone", - 'cal_str' => $cal_str, + 'cal_str' => $cal_str ] ]; @@ -1568,7 +1568,7 @@ if (isset($_POST['edit_ticket_schedule'])) { 'recipient_name' => $watcher_email, 'subject' => "Ticket Scheduled - [$ticket_prefix$ticket_number] - $ticket_subject", 'body' => "Hello, " . $watcher_email . "

The ticket regarding $ticket_subject has been scheduled for $schedule.

--------------------------------
$ticket_link
--------------------------------

Please do not reply to this email.

Ticket: $ticket_prefix$ticket_number
Subject: $ticket_subject
Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id

~
$session_company_name
Support Department
$config_ticket_from_email
$company_phone", - 'cal_str' => $cal_str, + 'cal_str' => $cal_str ]; }