make OTP plugin inherit SMTP relay configuration
Use rms.auth.smtp_relay settings as the primary source for OTP mail transport (host/port/auth/tls/from/replyTo), with existing OTP/env values only as fallback. This lets OTP delivery work immediately when relay settings are already configured.
This commit is contained in:
@@ -6703,6 +6703,7 @@ async function loadPlugins() {
|
||||
execMode: config.execMode,
|
||||
simulateHardware: config.simulateHardware,
|
||||
getSetting: (key, fallback = null) => getPluginSetting(manifest.id, key, fallback),
|
||||
getPluginSetting: (pluginId, key, fallback = null) => getPluginSetting(pluginId, key, fallback),
|
||||
commandRunner: runCommand,
|
||||
executeCapability: async (capability, action, input = {}, meta = {}) => executeCapability(capability, action, input, meta),
|
||||
emit: (type, data) => broadcastEvent(type, { pluginId: manifest.id, ...data }),
|
||||
|
||||
Reference in New Issue
Block a user