mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-11-22 05:25:29 +07:00
Add require_tls input to prevent STARTTLS fallback to plain text (#317)
Expose nodemailer's requireTLS option so that when secure is false (e.g. STARTTLS on port 587), the connection aborts if the server does not support/negotiate STARTTLS, instead of silently sending credentials in clear text.
This commit is contained in:
1 parent
ca8dbb4d4f
commit
03a02a4940
3 files changed
+11
No files matched your search
@@ -37,6 +37,12 @@ Some features:
|
||||
# Optional whether this connection use TLS (default is true if server_port is 465)
|
||||
secure: true
|
||||
|
||||
# Optional: when secure is false (e.g. STARTTLS on port 587), abort the
|
||||
# connection if the server does not support/negotiate STARTTLS, instead
|
||||
# of silently falling back to a plain text connection. Recommended
|
||||
# whenever secure is false and you authenticate with username/password.
|
||||
require_tls: true
|
||||
|
||||
# Optional (recommended) mail server username:
|
||||
username: ${{secrets.MAIL_USERNAME}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user