mailout

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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.

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