From 6ea31adb9939936c73215729d7b8ea7515a09b26 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 6 Jul 2023 15:09:52 -0400 Subject: [PATCH] Removed Old Duplicate code for reply tickets as it was using the queue method and the old method --- post/ticket.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/post/ticket.php b/post/ticket.php index bf5b6541..578584fb 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -306,15 +306,6 @@ if (isset($_POST['add_ticket_reply'])) { // Get Email ID for reference $email_id = mysqli_insert_id($mysqli); - $mail = sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_password, $config_smtp_encryption, $config_smtp_port, - $config_ticket_from_email, $config_ticket_from_name, - $contact_email, $contact_name, - $subject, $body); - - if ($mail !== true) { - mysqli_query($mysqli,"INSERT INTO notifications SET notification_type = 'Mail', notification = 'Failed to send email to $contact_email_escaped'"); - mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Mail', log_action = 'Error', log_description = 'Failed to send email to $contact_email_escaped regarding $subject_escaped. $mail', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_user_id = $session_user_id"); - } } } //End Mail IF