Help us shape the future of Go! Take the 2026 Go Developer Survey

benedict

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 14 Imported by: 0

README

Benedict

Overview

To send email in the Go language, you must know the SMTP procedure.
Benedict is an email client that makes it easy to send email without such knowledge.

Installation

# go get github.com/tsukinoha/benedict

Usage

License

Benedict is distributed under The MIT License.
https://opensource.org/license/mit

Documentation

Index

Constants

View Source
const (
	ProdctName = "MaiLetter Mail Client"
	Version    = "0.4.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

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

func (*Address) Angle

func (a *Address) Angle() string

func (*Address) String

func (a *Address) String() string

type Att

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

func NewAtt

func NewAtt(r io.Reader, name string) (*Att, error)

func (*Att) Encode

func (a *Att) Encode() string

func (*Att) Name

func (a *Att) Name() string

type AuthInterface

type AuthInterface interface {
	smtp.Auth
}

type Client

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

func New

func New(dsnStr string) *Client

func (*Client) AuthByCramMd5

func (c *Client) AuthByCramMd5(username, secret string)

func (*Client) AuthByLogin

func (c *Client) AuthByLogin(username, password string)

func (*Client) AuthByPlain

func (c *Client) AuthByPlain(username, password string)

func (*Client) Bcc

func (c *Client) Bcc(addr, name string) error

func (*Client) Body

func (c *Client) Body(body string)

func (*Client) Cc

func (c *Client) Cc(addr, name string) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) From

func (c *Client) From(addr, name string) error

func (*Client) Header

func (c *Client) Header(key, value string) error

func (*Client) LocalName

func (c *Client) LocalName(localName string)

func (*Client) Reset

func (c *Client) Reset() error

func (*Client) Send

func (c *Client) Send() error

func (*Client) Set

func (c *Client) Set(key, value string)

func (*Client) String

func (c *Client) String() string

func (*Client) Subject

func (c *Client) Subject(subject string)

func (*Client) To

func (c *Client) To(addr, name string) error

type Login

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

func (*Login) Next

func (auth *Login) Next(fromServer []byte, more bool) ([]byte, error)

func (*Login) Start

func (auth *Login) Start(server *smtp.ServerInfo) (string, []byte, error)

Jump to

Keyboard shortcuts

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