qmail

package module
v0.0.0-...-81382ee Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

README

qmail

unstable, fork it

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(addr string, auth smtp.Auth, m Message) error

addr: net.JoinHostPort(host, port) auth: smtp.PlainAuth("", username, password, host)

Types

type Address

type Address struct {
	Email string
	Name  string
}

type Message

type Message struct {
	From    Address
	To      []Address
	Cc      []Address
	Bcc     []Address
	Subject string
	Body    io.Reader
	// contains filtered or unexported fields
}

func (*Message) Attach

func (m *Message) Attach(name string, reader io.Reader) error

func (*Message) InlineAttach

func (m *Message) InlineAttach(name string, reader io.Reader) (string, error)

Jump to

Keyboard shortcuts

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