fix(settings): drop from field from transport JSON preview

The transport JSON preview is strictly for verifying what is handed to
nodemailer.createTransport. The From header is built per-message in
sendMail, so showing it inside the transport JSON was misleading. The
separate From: ... pre block below the JSON is the right place for
that preview.
This commit is contained in:
gorkem-bwl committed 2026-04-29 15:48:12 -04:00
1 parent 8fbbb1dd4b
commit 6f988cc688
1 file changed
-3
-3
View File
@@ -583,8 +583,6 @@ export const SettingsPage = () => {
{(() => {
const address = form.watch("systemEmailAddress") || "";
const displayName = form.watch("systemEmailDisplayName")?.trim();
const from =
displayName && address ? { name: displayName, address } : address;
return (
<>
<Box
@@ -609,7 +607,6 @@ export const SettingsPage = () => {
},
name: form.watch("systemEmailConnectionHost") || "localhost",
pool: form.watch("systemEmailPool") ?? false,
from,
tls: {
rejectUnauthorized:
form.watch("systemEmailRejectUnauthorized") ?? true,