mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-09-17 09:06:48 +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:
@@ -14,6 +14,9 @@ inputs:
|
||||
default: "25"
|
||||
secure:
|
||||
description: Whether this connection use TLS (default is true if server_port is 465)
|
||||
require_tls:
|
||||
description: When 'secure' is false, refuse to send if the server does not support STARTTLS (prevents credentials from ever being sent in clear text)
|
||||
required: false
|
||||
username:
|
||||
description: Authenticate as this user to SMTP server
|
||||
password:
|
||||
|
||||
Reference in New Issue
Block a user