Files
send-mail/action.yml
T
Bernhard 03a02a4940 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.
2026-09-10 19:57:59 +02:00

81 lines
2.9 KiB
YAML

name: Send email
description: Send an email to multiple recipients
author: dawidd6
branding:
icon: mail
color: blue
inputs:
connection_url:
description: Connection URL protocol://user:password@server:port, protocol can be smtp or smtp+starttls, replaces server_address, server_port, secure, username and password
server_address:
description: SMTP server address
server_port:
description: SMTP server port
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:
description: Authenticate with this password to SMTP server
subject:
description: Subject of mail message
required: true
to:
description: Recipients mail addresses (separated with comma)
required: false
from:
description: 'Either a plain email address, or full name of the sender, followed by whitespace, followed by email address enclosed in <>'
required: true
body:
description: Body of mail message (might be a filename prefixed with file:// to read from)
required: false
html_body:
description: HTML body of mail message (might be a filename prefixed with file:// to read from)
required: false
cc:
description: Carbon copy recipients (separated with comma)
required: false
bcc:
description: Blind carbon copy recipients (separated with comma)
required: false
reply_to:
description: An email address that will appear on the Reply-To field
required: false
in_reply_to:
description: The Message-ID this message is replying to
required: false
ignore_cert:
description: Allow unsigned/invalid certificates
required: false
convert_markdown:
description: Convert body from Markdown to HTML (set content_type input as text/html too)
required: false
attachments:
description: Files that will be added to mail message attachments (separated with comma)
required: false
priority:
description: Set Priority level for the mail message to 'high', 'normal' (default) or 'low'
required: false
headers:
description: 'Custom headers for the mail message as a JSON string (e.g., {"X-Custom-Header": "value"})'
required: false
nodemailerlog:
description: Log option for nodemailer
required: false
nodemailerdebug:
description: Debug option for nodemailer
required: false
envelope_from:
description: Custom envelope sender address for SMTP MAIL FROM command
required: false
envelope_to:
description: Custom envelope recipient addresses for SMTP RCPT TO command (separated with comma)
required: false
runs:
using: node24
main: main.js