email

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.7.0

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
}

type SMTPDialer

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

func NewSMTPDialer

func NewSMTPDialer(c Config) *SMTPDialer

func (*SMTPDialer) Send

func (s *SMTPDialer) Send(c SendConfig) error

type SendConfig added in v0.7.0

type SendConfig struct {
	FromAddr string
	FromName string
	ToAddr   string
	ToName   string
	CcAddr   string
	CcName   string
	Subject  string
	Body     string
	Attach   string
}

Jump to

Keyboard shortcuts

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