email

package
v0.0.0-...-a1697ce Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Subject      string
	Body         string
	FromAddress  string
	ToAddresses  []string
	CcAddresses  []string
	BccAddresses []string
	SentAt       *time.Time
}

func NewEmail

func NewEmail(body string, fromAddress string, toAddresses []string) (*Email, error)

type EmailErrors

type EmailErrors []error
var ObjEmailErrors *EmailErrors

func GetEmailErrors

func GetEmailErrors() *EmailErrors

func NewEmailErrors

func NewEmailErrors() *EmailErrors

func (EmailErrors) Error

func (ees EmailErrors) Error() string

func (EmailErrors) Len

func (ees EmailErrors) Len() int

func (*EmailErrors) Push

func (ees *EmailErrors) Push(err error)

type Emails

type Emails []*Email

func (*Emails) Len

func (es *Emails) Len() int

func (*Emails) Push

func (es *Emails) Push(e *Email)

Emails has Push, Len, verify

type InvalidEmailAddressError

type InvalidEmailAddressError struct {
	Email string
}

ToDo: Emailのerror実装はあとで

func (*InvalidEmailAddressError) Error

func (e *InvalidEmailAddressError) Error() string

type InvalidEmailBodyError

type InvalidEmailBodyError struct {
}

func (*InvalidEmailBodyError) Error

func (e *InvalidEmailBodyError) Error() string

Jump to

Keyboard shortcuts

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