mail

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(userName, password, host, port string) smtp.Auth

func SendEmail

func SendEmail(from, msg string, to []string, auth smtp.Auth, setting *EmailSetting) error

Types

type Email

type Email struct {
	From     string
	To       []string
	Body     string
	AuthInfo smtp.Auth
	Setting  *EmailSetting
}

func NewEmail

func NewEmail() *Email

type EmailSetting

type EmailSetting struct {
	UserName string
	Password string
	Host     string
	Port     string
}

func GetEmailSetting

func GetEmailSetting(userName, password, host, port string) *EmailSetting

func NewEmailSetting

func NewEmailSetting() *EmailSetting

Jump to

Keyboard shortcuts

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