From cd27decb377314c717a817fcd4e455d3fdaf64d3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 18 Aug 2023 16:11:57 -0400 Subject: [PATCH] Fix issue when sending shared links it was using the ticket_from_email_address instead of the generic Email address programmed in settings > Mail > SMTP > Mail from Email --- ajax.php | 2 +- get_settings.php | 2 +- settings_mail.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ajax.php b/ajax.php index fb00ae9e..2d6dc6a0 100644 --- a/ajax.php +++ b/ajax.php @@ -285,7 +285,7 @@ if (isset($_GET['share_generate_link'])) { $body = "Hello,

$session_name from $session_company_name sent you a time sensitive encrypted link which will expire in $item_expires and may only be viewed $item_view_limit times, before the link is destroyed. The sender will receive a notification when the link is viewed. Please click the link below to view your shared secret

Click Here

~
$session_company_name
Support Department
$config_ticket_from_email"; $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, + $config_mail_from_email, $config_mail_from_name, $item_email, $item_email, $subject, $body); diff --git a/get_settings.php b/get_settings.php index fc526b62..3e204f43 100644 --- a/get_settings.php +++ b/get_settings.php @@ -11,7 +11,7 @@ DEFINE("CURRENT_DATABASE_VERSION", $row['config_current_database_version']); $config_azure_client_id = $row['config_azure_client_id']; $config_azure_client_secret = $row['config_azure_client_secret']; -// Mail +// Mail - SMTP $config_smtp_host = $row['config_smtp_host']; $config_smtp_port = intval($row['config_smtp_port']); $config_smtp_encryption = $row['config_smtp_encryption']; diff --git a/settings_mail.php b/settings_mail.php index 1db6612a..9d5e3181 100644 --- a/settings_mail.php +++ b/settings_mail.php @@ -167,7 +167,7 @@ require_once("inc_all_settings.php"); ?> - +
@@ -187,7 +187,7 @@ require_once("inc_all_settings.php"); ?> - +