mail

package
v0.0.0-...-6067ee5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

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

Send sends an email message

Types

type Message

type Message struct {
	// contains filtered or unexported fields
}

Message is the message

func NewMessage

func NewMessage(from string, to []string, subject, body string) *Message

NewMessage creates a new message

func (*Message) AddRecipient

func (m *Message) AddRecipient(rcpt string)

AddRecipient adds a recipient to the message

func (*Message) Attach

func (m *Message) Attach(fPath string) error

Attach attaches a file to the message

Jump to

Keyboard shortcuts

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