mailout

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Mail Out node

Type: mailOut
Category: Network

Sends the message as an e-mail via SMTP.

Behavior

This node is registered as mailOut and runs as part of a workflow. Its exact runtime behavior is implemented in node.go; this document summarizes the editor-facing purpose and configuration contract.

Configuration

Field Type Default Description
bcc ``
cc ``
errorCatch boolean false Error Catch Port — Adds a dedicated "error" output port; a node failure emits msg.error={text,node,full} on it when wired, else the catch/problem-queue ladder applies
from ``
host ``
html boolean false HTML Body — Send the payload as text/html instead of text/plain
password string Password — Optional SMTP-AUTH password (credential: masked, never exported)
port integer 0 Port — SMTP port (0 = default for security: 465 tls, 587 starttls, 25 plain)
security string starttls Security
subject ``
to ``
username string Username — Optional SMTP-AUTH username (credential: masked, never exported)

Implementation

  • node.go contains the executor, validation, schema, and registration.
  • editor.html contains the editor integration.
  • node_test.go, when present, contains behavioral tests.

Documentation

Overview

Package mailout contains the mailOut node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailOutConfig

type MailOutConfig struct {
	// Host is the SMTP server host.
	Host string `json:"host"`
	// Port is the SMTP server port. Zero picks the default for the
	// security mode: 465 (tls), 587 (starttls), 25 (plain).
	Port int `json:"port"`
	// Security selects the transport: "tls" (implicit TLS on connect),
	// "starttls" (upgrade after connect, the default) or "plain".
	Security string `json:"security"`
	// From is the envelope/header sender address.
	From string `json:"from"`
	// To/Cc/Bcc are the default recipients; message metadata overrides.
	To  string `json:"to"`
	Cc  string `json:"cc"`
	Bcc string `json:"bcc"`
	// Subject is the default subject; the message's topic metadata
	// (or mail.subject) overrides it.
	Subject string `json:"subject"`
	// HTML marks the body Content-Type text/html instead of text/plain.
	HTML bool `json:"html"`
	// Username/Password are optional SMTP-AUTH credentials. They are
	// credential-typed fields: stored outside the exported flow
	// document and merged back in at deploy time.
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

MailOutConfig holds configuration for the mailOut node.

type MailOutNode

type MailOutNode struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

MailOutNode sends the incoming message as an e-mail via SMTP and passes the input through unchanged.

func NewMailOutNode

func NewMailOutNode(node nodestore.NodeInterface, config *MailOutConfig) *MailOutNode

NewMailOutNode creates a new mailOut node

func (*MailOutNode) Execute

Execute builds the e-mail from config + message overrides and sends it through the configured server.

func (*MailOutNode) Validate

func (n *MailOutNode) Validate() error

Validate checks the mailOut node configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL