mail

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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:    "",
	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   `ini:"debug"`
	Mode         string `ini:"mode"`
	Host         string `ini:"host"`
	Port         int    `ini:"port"`
	FromEmail    string `ini:"fromEmail"`
	FromPassword string `ini:"fromPassword"`
}

Jump to

Keyboard shortcuts

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