diff --git a/agent/post/contact.php b/agent/post/contact.php
index 010de96b..2da5871e 100644
--- a/agent/post/contact.php
+++ b/agent/post/contact.php
@@ -172,7 +172,7 @@ if (isset($_POST['edit_contact'])) {
}
// Send contact a welcome e-mail, if specified
- if ($send_email && $auth_method && $config_smtp_host && $contact_user_id) {
+ if ($send_email && $auth_method && $config_smtp_provider && $contact_user_id) {
// Sanitize Config vars from get_settings.php
$config_ticket_from_email = sanitizeInput($config_ticket_from_email);
diff --git a/agent/post/payment.php b/agent/post/payment.php
index c0080569..1d4cd713 100644
--- a/agent/post/payment.php
+++ b/agent/post/payment.php
@@ -443,7 +443,7 @@ if (isset($_POST['add_payment_stripe'])) {
mysqli_query($mysqli, "INSERT INTO history SET history_status = 'Paid', history_description = 'Online Payment added (agent)', history_invoice_id = $invoice_id");
// Email receipt
- if (!empty($config_smtp_host)) {
+ if (!empty($config_smtp_provider)) {
$subject = "Payment Received - Invoice $invoice_prefix$invoice_number";
$body = "Hello $contact_name,
We have received online payment for the amount of " . numfmt_format_currency($currency_format, $invoice_amount, $invoice_currency_code) . " for invoice $invoice_prefix$invoice_number. Please keep this email as a receipt for your records.
-- $company_name - Billing Department $config_invoice_from_email $company_phone";
@@ -628,7 +628,7 @@ if (isset($_GET['add_payment_stripe'])) {
mysqli_query($mysqli, "INSERT INTO history SET history_status = 'Paid', history_description = 'Online Payment added (agent)', history_invoice_id = $invoice_id");
// Email receipt
- if (!empty($config_smtp_host)) {
+ if (!empty($config_smtp_provider)) {
$subject = "Payment Received - Invoice $invoice_prefix$invoice_number";
$body = "Hello $contact_name,
We have received online payment for the amount of " . numfmt_format_currency($currency_format, $invoice_amount, $invoice_currency_code) . " for invoice $invoice_prefix$invoice_number. Please keep this email as a receipt for your records.
-- $company_name - Billing Department $config_invoice_from_email $company_phone";
diff --git a/agent/post/recurring_ticket.php b/agent/post/recurring_ticket.php
index 686163c2..0e2ac68f 100644
--- a/agent/post/recurring_ticket.php
+++ b/agent/post/recurring_ticket.php
@@ -166,7 +166,7 @@ if (isset($_POST['bulk_force_recurring_tickets'])) {
$data = [];
// Notify client by email their ticket has been raised, if general notifications are turned on & there is a valid contact email
- if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
+ if (!empty($config_smtp_provider) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
$email_subject = "Ticket Created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
$email_body = "##- Please type your reply above this line -##
Hello $contact_name,
A ticket regarding \"$ticket_subject\" has been automatically created for you.
Ticket: $ticket_prefix$ticket_number Subject: $ticket_subject Status: Open Portal: https://$config_base_url/client/ticket.php?id=$id
-- $company_name - Support $config_ticket_from_email $company_phone";
@@ -306,7 +306,7 @@ if (isset($_GET['force_recurring_ticket'])) {
$data = [];
// Notify client by email their ticket has been raised, if general notifications are turned on & there is a valid contact email
- if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
+ if (!empty($config_smtp_provider) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
$email_body = "##- Please type your reply above this line -##
Hello $contact_name,
A ticket regarding \"$ticket_subject\" has been automatically created for you.
A recent login to your $config_app_name account was unsuccessful due to an incorrect 2FA code. If you did not attempt this login, your credentials may be compromised.