mail

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTP

type SMTP struct {
	SMTPConfig
	// contains filtered or unexported fields
}

func (*SMTP) Send

func (s *SMTP) Send() error

func (*SMTP) SetContent

func (s *SMTP) SetContent(subject, message string) SMTPs

func (*SMTP) SetRecipient

func (s *SMTP) SetRecipient(recipient []string) SMTPs

type SMTPConfig

type SMTPConfig struct {
	Sender        string
	EmailUsername string
	EmailPassword string
	EmailFrom     string
	Host          string
	Port          int
	// contains filtered or unexported fields
}

type SMTPs

type SMTPs interface {
	SetRecipient(recipient []string) SMTPs
	SetContent(subject, message string) SMTPs
	Send() error
}

func NewSMTP

func NewSMTP(cfg *SMTPConfig) SMTPs

Jump to

Keyboard shortcuts

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