cmd

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cmd is the sendmail cli

Package cmd is a wrapper library to send mail

Index

Constants

This section is empty.

Variables

View Source
var (
	// SMTPAddr address
	SMTPAddr = "localhost:1025"
	// FromAddr email address
	FromAddr string
	// UseB - used to set from `-bs`
	UseB bool
	// UseS - used to set from `-bs`
	UseS bool
)

Functions

func HelpTemplate added in v1.6.15

func HelpTemplate(args []string) string

HelpTemplate returns a string of the help

func Run

func Run()

Run the Mailpit sendmail replacement.

func Send added in v1.21.0

func Send(addr string, from string, to []string, msg []byte) error

Send is a wrapper for smtp.SendMail() which also supports sending via unix sockets. Unix sockets must be set as unix:/path/to/socket It does not support authentication.

Types

This section is empty.

Jump to

Keyboard shortcuts

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