postmail

package
v0.0.0-...-ae089e8 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.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 Email

type Email struct {
	From     string
	Pwd      string
	To       []string
	User     string
	Mime     string
	SmtpHost string
	SmtpPort string
	Message  string
	Auth     smtp.Auth
}

func NewEmail

func NewEmail(Conf *config.Conf) *Email

func (*Email) AddTos

func (e *Email) AddTos(to string)

func (*Email) Auths

func (e *Email) Auths()

func (*Email) Froms

func (e *Email) Froms(from string)

func (*Email) Html

func (e *Email) Html(path string, Data interface{}) (err error)

func (*Email) Messages

func (e *Email) Messages(a string)

func (*Email) Mimes

func (e *Email) Mimes(b string)

func (*Email) Pwds

func (e *Email) Pwds(pwd string)

func (*Email) Send

func (e *Email) Send() error

func (*Email) SmtpHosts

func (e *Email) SmtpHosts(h string)

func (*Email) SmtpPorts

func (e *Email) SmtpPorts(h string)

func (*Email) Tos

func (e *Email) Tos(to []string)

func (*Email) Users

func (e *Email) Users(a string)

Jump to

Keyboard shortcuts

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