email

package
v0.0.0-...-b99dcaa Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(sender Sender, to string, subject string, content string, isHtml bool) error

func SendEmailWithTls

func SendEmailWithTls(sender Sender, to string, subject string, content string, isHtml bool) error

Types

type Sender

type Sender struct {
	Nick     string
	Email    string
	Password string
	SmtpHost string
	SmtpPort int
}

type SmtpAuth

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

func (*SmtpAuth) Next

func (a *SmtpAuth) Next(fromServer []byte, more bool) ([]byte, error)

func (*SmtpAuth) Start

func (a *SmtpAuth) 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