email

package
v0.0.0-...-8626c2f Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginAuth

func NewLoginAuth(username, password string) smtp.Auth

Types

type Database

type Database interface {
	AddNewEmail(email string) error
	GetEmails() ([]string, error)
}

type LoginAuth

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

func (*LoginAuth) Next

func (a *LoginAuth) Next(fromServer []byte, more bool) ([]byte, error)

func (*LoginAuth) Start

func (a *LoginAuth) Start(*smtp.ServerInfo) (string, []byte, error)

type Repository

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

func NewRepository

func NewRepository(db Database) *Repository

func (*Repository) AddNewEmail

func (r *Repository) AddNewEmail(email string) error

func (*Repository) GetEmailList

func (r *Repository) GetEmailList() []string

type Sender

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

func NewSender

func NewSender(email, password string) *Sender

func (*Sender) SendEmail

func (s *Sender) SendEmail(toEmail string, subject string, body string) error

Jump to

Keyboard shortcuts

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