email

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnInit

func OnInit(config map[string]interface{}, option ...Option) (err error)

func SendMail

func SendMail(temail string, title, content string) error

Types

type Email

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

func (*Email) SendMail

func (this *Email) SendMail(temail string, title string, content string) (err error)

发送邮件

type IEmail

type IEmail interface {
	SendMail(temail string, title, content string) error
}

func NewSys

func NewSys(option ...Option) (sys IEmail, err error)

type Option

type Option func(*Options)

func SetFompasswd

func SetFompasswd(v string) Option

func SetFromemail

func SetFromemail(v string) Option

func SetServerhost

func SetServerhost(v string) Option

func SetServerport

func SetServerport(v int) Option

type Options

type Options struct {
	Serverhost string
	Fromemail  string
	Fompasswd  string
	Serverport int
}

Jump to

Keyboard shortcuts

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