mail

package
v0.0.0-...-cd24349 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInvokerCfg = InvokerCfg{
	Debug:        false,
	Mode:         "smtp",
	Host:         "smtp.qq.com",
	Port:         25,
	FromEmail:    "1423119397@qq.com",
	FromPassword: "",
}

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

Types

type Client

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

func Invoker

func Invoker(name string) *Client

invoker

func (*Client) Push

func (c *Client) Push(msg *gomail.Message) error

type InvokerCfg

type InvokerCfg struct {
	Debug        bool
	Mode         string
	Host         string
	Port         int
	FromEmail    string
	FromPassword string
}

example * [beemod.mail.my]

debug = true
mode  = "smtp"

Jump to

Keyboard shortcuts

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