smtp

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package smtp provides a mockable wrapper for net/smtp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) CRAMMD5Auth

func (*Impl) CRAMMD5Auth(username string, secret string) smtp.Auth

func (*Impl) Dial

func (*Impl) Dial(addr string) (*smtp.Client, error)

func (*Impl) NewClient

func (*Impl) NewClient(conn net.Conn, host string) (*smtp.Client, error)

func (*Impl) PlainAuth

func (*Impl) PlainAuth(identity string, username string, password string, host string) smtp.Auth

func (*Impl) SendMail

func (*Impl) SendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error

type Interface

type Interface interface {
	CRAMMD5Auth(username string, secret string) smtp.Auth
	Dial(addr string) (*smtp.Client, error)
	NewClient(conn net.Conn, host string) (*smtp.Client, error)
	PlainAuth(identity string, username string, password string, host string) smtp.Auth
	SendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error
}

Jump to

Keyboard shortcuts

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