(
+
+ {t(labelKey)}
+
+
+
+ )}
+ />
+ ))}
+
+
- {[
- [
- "settingsPage.emailSettings.labelSecure",
- "systemEmailSecure",
- systemEmailSecure,
- ],
- [
- "settingsPage.emailSettings.labelPool",
- "systemEmailPool",
- systemEmailPool,
- ],
- [
- "settingsPage.emailSettings.labelIgnoreTLS",
- "systemEmailIgnoreTLS",
- systemEmailIgnoreTLS,
- ],
- [
- "settingsPage.emailSettings.labelRequireTLS",
- "systemEmailRequireTLS",
- systemEmailRequireTLS,
- ],
- [
- "settingsPage.emailSettings.labelRejectUnauthorized",
- "systemEmailRejectUnauthorized",
- systemEmailRejectUnauthorized,
- ],
- ].map(([labelKey, name, value]) => (
- (
-
- {t(labelKey)}
-
-
-
- )}
- />
- ))}
-
-
-
-
- {JSON.stringify(
- {
- host: systemEmailHost,
- port: systemEmailPort,
- secure: systemEmailSecure,
- auth: {
- user: systemEmailUser || systemEmailAddress,
- pass: "",
- },
- name: systemEmailConnectionHost || "localhost",
- pool: systemEmailPool,
- tls: {
- rejectUnauthorized: systemEmailRejectUnauthorized,
- ignoreTLS: systemEmailIgnoreTLS,
- requireTLS: systemEmailRequireTLS,
- servername: systemEmailTLSServername,
- },
+
+ {JSON.stringify(
+ {
+ host: systemEmailHost,
+ port: systemEmailPort,
+ secure: systemEmailSecure,
+ auth: {
+ user: systemEmailUser || systemEmailAddress,
+ pass: "",
},
- null,
- 2
- )}
-
-
-
-
-
- {JSON.stringify({
- systemEmailHost: systemEmailHost,
- systemEmailAddress: systemEmailAddress,
- systemEmailPassword: systemEmailPassword,
- })}
-
-
-
- {systemEmailHost &&
- systemEmailPort &&
- systemEmailAddress &&
- systemEmailPassword && (
-
+ name: systemEmailConnectionHost || "localhost",
+ pool: systemEmailPool,
+ tls: {
+ rejectUnauthorized: systemEmailRejectUnauthorized,
+ ignoreTLS: systemEmailIgnoreTLS,
+ requireTLS: systemEmailRequireTLS,
+ servername: systemEmailTLSServername,
+ },
+ },
+ null,
+ 2
)}
+
-