email

package
v0.0.0-...-d05e76d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateReceipt

func CalculateReceipt(from, to, subject, body string) string

func SendMessages

func SendMessages(log logger, credentials Credentials, messages []Message) ([]string, error)

Types

type Credentials

type Credentials struct {
	IMAPServerAddress string
	SMTPServerAddress string
	Username          string
	Password          string
}

type Message

type Message struct {
	From    string
	To      string
	Subject string
	Body    io.Reader
}

func FetchInbox

func FetchInbox(log logger, credentials Credentials) ([]Message, error)

Jump to

Keyboard shortcuts

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