email

package
v0.0.0-...-8b6083e Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

The Backend implements SMTP server methods.

func (*Backend) AnonymousLogin

func (bkc *Backend) AnonymousLogin(_ *smtp.ConnectionState) (smtp.Session, error)

func (*Backend) Login

func (bkc *Backend) Login(_ *smtp.ConnectionState, username string, password string) (smtp.Session, error)

func (*Backend) NewSession

func (bkd *Backend) NewSession(_ *smtp.ConnectionState, _ string) (smtp.Session, error)

type EmailProvider

type EmailProvider struct{}

func (EmailProvider) Description

func (r EmailProvider) Description() string

func (EmailProvider) Identifier

func (r EmailProvider) Identifier() string

func (EmailProvider) Name

func (r EmailProvider) Name() string

func (EmailProvider) Routes

func (EmailProvider) Service

func (r EmailProvider) Service() providers.Service

func (EmailProvider) Templates

func (r EmailProvider) Templates()

type EmailService

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

func NewEmailService

func NewEmailService() *EmailService

func (*EmailService) Start

func (s *EmailService) Start() chan providers.ServiceMessage

type Session

type Session struct{}

A Session is returned after EHLO.

func (*Session) AuthPlain

func (s *Session) AuthPlain(username, password string) error

func (*Session) Data

func (s *Session) Data(r io.Reader) error

func (*Session) Logout

func (s *Session) Logout() error

func (*Session) Mail

func (s *Session) Mail(from string, opts smtp.MailOptions) error

func (*Session) Rcpt

func (s *Session) Rcpt(to string) error

func (*Session) Reset

func (s *Session) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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