goo_mail

package
v1.1.183 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf Config)

func New

func New(conf Config) iMail

func Send

func Send(msg Message) error

Types

type Config

type Config struct {
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
	Host     string `json:"host" yaml:"host"`
	Port     int    `json:"port" yaml:"port"`
	TLS      bool   `json:"tls" yaml:"tls"`
}

type Message

type Message struct {
	Sender     string   // 发送者
	SenderName string   // 发送者名称
	Receivers  []string // 接受者
	Subject    string   // 主题
	Body       string   // 内容
}

func (*Message) Html

func (m *Message) Html() []byte

Jump to

Keyboard shortcuts

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