email

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Mailer() Mailer
}

type Mailer

type Mailer interface {
	Mail(*Message) error
}

type Message

type Message struct {
	From     string
	To       []string
	Subject  string
	HTMLBody string
}

type SMTPConfig

type SMTPConfig struct {
	From     string
	Host     string
	Port     int
	Username string
	Password string
}

func (*SMTPConfig) Mailer

func (c *SMTPConfig) Mailer() Mailer

type SMTPMailer

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

func NewSMTPMailer

func NewSMTPMailer(host string, port int, username, password string) *SMTPMailer

func (*SMTPMailer) Mail

func (s *SMTPMailer) Mail(m *Message) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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