Allow for unsecure SMTP settings for local unencrypted smtp relays #10605
+27
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update provides the flexibility for users to configure SMTP for local instances where encryption is not required. For environments using an unencrypted SMTP relay or similar local instances that are not open to the public, the end user can now choose to disable encryption. This ensures flexibility in the configuration while still maintaining the option for secure SMTP connections in other environments.
From NodeMailer
secure – if true the connection will use TLS when connecting to server. If false (the default) then TLS is used if server supports the STARTTLS extension. In most cases set this value to true if you are connecting to port 465. For port 587 or 25 keep it false.
ignoreTLS – if this is true and secure is false then TLS is not used even if the server supports STARTTLS extension.