smtp

package
v0.0.0-...-0075f3b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(discord *discord.Session, username, password string) (*Backend, error)

func (*Backend) AnonymousLogin

func (b *Backend) AnonymousLogin(state *smtp.ConnectionState) (smtp.Session, error)

func (*Backend) Login

func (b *Backend) Login(state *smtp.ConnectionState, username, password string) (smtp.Session, error)

type Session

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

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()

Jump to

Keyboard shortcuts

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