Added option to set From email on smtp settings

This commit is contained in:
ellite
2023-11-17 00:39:14 +01:00
parent c70859e1b0
commit 0b6246b09d
8 changed files with 35 additions and 8 deletions
+6 -2
View File
@@ -507,6 +507,7 @@ function saveNotificationsButton() {
const smtpPort = document.getElementById("smtpport").value;
const smtpUsername = document.getElementById("smtpusername").value;
const smtpPassword = document.getElementById("smtppassword").value;
const fromEmail = document.getElementById("fromemail").value;
const data = {
enabled: enabled,
@@ -514,7 +515,8 @@ function saveNotificationsButton() {
smtpaddress: smtpAddress,
smtpport: smtpPort,
smtpusername: smtpUsername,
smtppassword: smtpPassword
smtppassword: smtpPassword,
fromemail: fromEmail
};
fetch('/endpoints/notifications/save.php', {
@@ -547,12 +549,14 @@ function testNotificationButton() {
const smtpPort = document.getElementById("smtpport").value;
const smtpUsername = document.getElementById("smtpusername").value;
const smtpPassword = document.getElementById("smtppassword").value;
const fromEmail = document.getElementById("fromemail").value;
const data = {
smtpaddress: smtpAddress,
smtpport: smtpPort,
smtpusername: smtpUsername,
smtppassword: smtpPassword
smtppassword: smtpPassword,
fromemail: fromEmail
};
fetch('/endpoints/notifications/sendtestmail.php', {