goatmail

package
v0.0.0-...-a532a67 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: LGPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address mail.Address

Address is object represent a single email address

func (Address) String

func (a Address) String() string

String convert a address to smtp representation like "Sebastian Pożoga <sebastian@goatcms.com>"

type Attachment

type Attachment struct {
	Name   string
	MIME   string
	Reader io.Reader
}

Attachment is object represent a single email attachment

type Mail

type Mail struct {
	Date        time.Time
	From        Address
	To          []Address
	Subject     string
	Body        map[string]io.Reader
	Attachments []Attachment
}

Mail is object represent a single email

func (Mail) ToAddrs

func (mail Mail) ToAddrs() []string

ToAddrs repare a string list cntains all recipients of the e-mail

type MailSender

type MailSender interface {
	Send(*Mail)
}

MailSender provide dial send stream api

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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