diff --git a/post/invoice.php b/post/invoice.php index da872849..965b3cff 100644 --- a/post/invoice.php +++ b/post/invoice.php @@ -694,9 +694,9 @@ if (isset($_POST['add_payment'])) { // Email Logging - $_SESSION['alert_message'] = "Email receipt sent "; + $_SESSION['alert_message'] = "Email queued successfully! Check Admin > Mail queue"; - mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Emailed Receipt!', history_invoice_id = $invoice_id"); + mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Email Receipt Queued', history_invoice_id = $invoice_id"); } @@ -726,7 +726,7 @@ if (isset($_POST['add_payment'])) { // Email Logging - $_SESSION['alert_message'] .= "Email receipt sent "; + $_SESSION['alert_message'] = "Test email queued successfully! Check Admin > Mail queue"; mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Payment Receipt sent to mail queue ID: $email_id!', history_invoice_id = $invoice_id"); @@ -877,7 +877,7 @@ if (isset($_POST['add_bulk_payment'])) { // Email Logging mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Payment', log_action = 'Email', log_description = 'Bulk Payment receipt for multiple Invoices queued to $contact_email Email ID: $email_id', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id, log_entity_id = $payment_id"); - $_SESSION['alert_message'] .= "Email receipt sent and "; + $_SESSION['alert_message'] .= "Email receipt queued and "; } // End Email @@ -1013,7 +1013,7 @@ if (isset($_GET['email_invoice'])) { // Get Email ID for reference $email_id = mysqli_insert_id($mysqli); - $_SESSION['alert_message'] = "Invoice has been sent"; + $_SESSION['alert_message'] = "Invoice sent to mail queue! Check Admin > Mail queue"; mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Invoice sent to the mail queue ID: $email_id', history_invoice_id = $invoice_id"); // Don't change the status to sent if the status is anything but draft diff --git a/post/quote.php b/post/quote.php index 69c2075a..c0a4fa92 100644 --- a/post/quote.php +++ b/post/quote.php @@ -407,10 +407,10 @@ if (isset($_GET['email_quote'])) { addToMailQueue($mysqli, $data); // Logging - mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Emailed Quote!', history_quote_id = $quote_id"); + mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Email Quote Queued', history_quote_id = $quote_id"); mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Quote', log_action = 'Email', log_description = '$session_name emailed Quote $quote_prefix$quote_number to $contact_email Email ID: ', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id, log_entity_id = $quote_id"); - $_SESSION['alert_message'] = "Quote has been sent"; + $_SESSION['alert_message'] = "Quote has been queued successfully! Check Admin > Mail queue"; //Don't change the status to sent if the status is anything but draft if ($quote_status == 'Draft') { diff --git a/post/setting.php b/post/setting.php index fa99eed1..303c7490 100644 --- a/post/setting.php +++ b/post/setting.php @@ -184,7 +184,7 @@ if (isset($_POST['test_email_smtp'])) { $mail = addToMailQueue($mysqli, $data); if ($mail === true) { - $_SESSION['alert_message'] = "Test email queued successfully - Check Admin > Mail queue"; + $_SESSION['alert_message'] = "Test email queued successfully! Check Admin > Mail queue"; } else { $_SESSION['alert_type'] = "error"; $_SESSION['alert_message'] = "Failed to add test mail to queue";